-
Notifications
You must be signed in to change notification settings - Fork 424
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
Un deprecate the help attribute - to provide support for multiple help option #1422
Comments
Please try adding |
This works. Wonderful... thanks @remkop . |
I should take the deprecation off. Let’s change the title of this ticket and make it about undeprecating the |
Undeprecating will help us. I have updated the title of this ticket. Thanks |
I removed the deprecated annotation from the This will be part of the next picocli release. |
This reverts commit b6e2e97.
This reverts commit b6e2e97.
Hi - We have a scenario, where we would like to provide multiple option for help to our user. Actually, our command has a number of parameters (option + parameter). A good number of these parameters have default value or are read from a separate file. Since the parameters with default values are not very prime for our users to see, so we made those option hidden and introduced an option of "-H, --help-all-args" whose purpose is to unhide the parameters and display entire help.
This was working fine till we did not have any required option/parameter. The moment we added a command with required option/parameter, the command failed in validating required data check.
I tried to use preprocessor API (IParameterPreprocessor) to by pass the validation, but it did not work, as we have subcommands and the preprocessor API exits at top level command.
Can you please provide your input on this. Whether this is achievable in current version, if so, what shall be done to make it work. What we need to do is to unhide the options and invoke usage, if -H is passed as an argument (without any validation).
By the way, when we tried to put usageHelp=true on this new option, then we got a warning stating that multiple help option is configured.
Thanks
The text was updated successfully, but these errors were encountered: