-
Notifications
You must be signed in to change notification settings - Fork 481
Help Text Displays 'help' Option/Verb if AutoHelp is 'False' #455
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
Closed (Reason) |
The So to hide --help/--version option , these properties should be false in both Parser and HelpText var parser = new CommandLine.Parser(with=>
It may be better if these properties are renamed in HelpText to be: ShowHelp/ShowVersion How To show help/version screen In WithNotParsed method you should catch the error of type "UnknownOptionError" and based on the Token "help" or "version" show your custom help/version screen |
This issue is resolved in v2.6.0 |
Description
If I configure the parser to not support the implicit option/verb 'help', the help text still contains the option/verb.
(This is possibly related to #414)
Expected Behavior
I expect that the option/verb is not displayed.
Environment
How to Reproduce
--help
The text was updated successfully, but these errors were encountered: