Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unmatching argument order in help output #110

Open
ninascarpelli opened this issue Feb 4, 2022 · 1 comment
Open

Unmatching argument order in help output #110

ninascarpelli opened this issue Feb 4, 2022 · 1 comment
Labels
area: general bug Something isn't working

Comments

@ninascarpelli
Copy link
Contributor

When running the command:

emu.exe rename --help `

the usage output is:

emu [options] rename [< targets >...]
Arguments:
One more glob patterns for files to process. E.g. '**/*.mp3'
Options:
-n, --dry-run Do a "dry run" by simulating any change that writes data
--copy-to Create copies of the original files and move them to this directory
--flatten Flattens files so all files in folders are moved up to the target directory
--new-offset Changes the UTC offset of the datestamp. Use this to change the datestamp to your another timezone. Note: does not change the instant the timestamp occurs at.
--offset Adds a UTC offset to the datestamp. Only affects local datestamps without an offset. Use this convert a local date to a global date.
-v, --verbose Log verbosely - equivalent to log level debug
-vv, --very-verbose Log very verbosely - equivalent to log level trace
-l, --log-level <Crit|Debug|Error|Info|None|Trace|Warn> Set the log level [default: Info]
-F, --format <Compact|CSV|Default|JSON|JSONL> Which format to ouput results in. [default: Default]
-?, -h, --help Show help and usage information

However, if I ask:

emu.exe --dry-run rename "***.flac"

I get an error message:

Unrecognized command or argument '--dry-run'

The order on usage output should be:

emu [< targets >...] rename [options]

@atruskie atruskie added the bug Something isn't working label Feb 6, 2022
@atruskie
Copy link
Member

atruskie commented Feb 6, 2022

Thanks for the report.

This is a bug in the help formatter of our CLI library. See dotnet/command-line-api#1334

The order on usage output should be:

emu [< targets >...] rename [options]

No, not quite. It should be:

emu [global options] rename [<targets> ...] [options]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: general bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants