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
Given code like this:
@Option(names = "--crash-report", defaultValue = "true", negatable = true) private boolean crashReportEnabled; @Option(names = "--homedir") private Path homeDir;
if invoked with --homedir --crash-report, it quits as expected with this message:
--homedir --crash-report
Expected parameter for option '--homedir' but found '--crash-report'
But if invoked with the boolean option's negated form --homedir --no-crash-report it assigns --no-crash-report as the value of homeDir.
--homedir --no-crash-report
--no-crash-report
homeDir
using picocli and picocli-codegen version 4.5.1.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this! That looks like a bug. Looking into it.
Sorry, something went wrong.
4ef6bd4
Sorry for the delay. I found the cause and pushed a fix to master. This fix will be included in the next release. Thanks again for raising this!
Picocli 4.5.2, which contains the fix for this issue, has been released. Enjoy!
No branches or pull requests
Given code like this:
if invoked with
--homedir --crash-report
, it quits as expected with this message:But if invoked with the boolean option's negated form
--homedir --no-crash-report
it assigns--no-crash-report
as the value ofhomeDir
.using picocli and picocli-codegen version 4.5.1.
The text was updated successfully, but these errors were encountered: