-
Notifications
You must be signed in to change notification settings - Fork 481
I get "Option 'version' is unknown" if it comes after other user-defined options on the command line #661
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
Comments
What do you think to fix this issue:
|
Comments on each suggestion:
An alternate suggestion: If "--version" is present, can the app print the version as the very first action, and then let the app proceed as normal? |
Help screen is short and it's supposed that user manual of the tool describe how to use these options in detail in a correct way.
--Version /Help are separate commands and most of the CLI tools don't work in this way. for example: `dotnet --info --version' run info not the version command. |
I think option 2 is reasonable especially it math GNU standard. |
I've just read the GNU standard regarding command-line params. I now agree with you that (2) is the best option: params Since |
This is fixed by #686, which allow |
Since
version
is pretty much built-in, it should never be "unknown", especially if this message is immediately followed by helptext that clearly shows that it is a valid option.The text was updated successfully, but these errors were encountered: