We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The example from chapter 2.3, extended by an help-option (e.g. -?), fails if just the help-option is supplied:
@Parameters(hidden = true) // "hidden": don't show this parameter in usage help message List<String> allParameters; // no "index" attribute: captures _all_ arguments (as Strings) @Parameters(index = "0") InetAddress host; @Parameters(index = "1") int port; @Parameters(index = "2..*") File[] files; @Option(names = "-?", help = true) boolean help; // <-- added
Called just with "-?" leads to: Exception in thread "main" picocli.CommandLine$MissingParameterException: Missing required parameter: port
Exception in thread "main" picocli.CommandLine$MissingParameterException: Missing required parameter: port
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! Investigating...
Sorry, something went wrong.
#128 fix over-eager validation that caused MissingParameterException …
14bd56e
…when a help-option is supplied
Tracked it down to over-eager validation. This is now fixed in master.
I released picocli v0.9.6 for this. Thanks again for the bug report!
Thanks for the fixing quickly. And thanks for the nice tool - helps me much.
Glad to hear that! If you like this project please star it on GitHub and tell your friends! :-)
No branches or pull requests
The example from chapter 2.3, extended by an help-option (e.g. -?), fails if just the help-option is supplied:
Called just with "-?" leads to:
Exception in thread "main" picocli.CommandLine$MissingParameterException: Missing required parameter: port
The text was updated successfully, but these errors were encountered: