-
Notifications
You must be signed in to change notification settings - Fork 425
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
Behaviour doesn't match documentation for boolean Option arity #1398
Labels
Milestone
Comments
You are correct, the documentation is incorrect. Do you feel like contributing a pull request for this? |
Revert the code behaviour or doc? |
We’ll change the documentation. |
remkop
added a commit
that referenced
this issue
Aug 4, 2021
remkop
added a commit
that referenced
this issue
Aug 4, 2021
MarkoMackic
pushed a commit
to MarkoMackic/picocli
that referenced
this issue
Oct 17, 2021
MarkoMackic
pushed a commit
to MarkoMackic/picocli
that referenced
this issue
Oct 17, 2021
MarkoMackic
added a commit
to MarkoMackic/picocli
that referenced
this issue
Oct 17, 2021
This reverts commit 4ac3aba.
MarkoMackic
added a commit
to MarkoMackic/picocli
that referenced
this issue
Oct 17, 2021
This reverts commit 9ef376a.
MarkoMackic
added a commit
to MarkoMackic/picocli
that referenced
this issue
Oct 17, 2021
This reverts commit 4ac3aba.
MarkoMackic
added a commit
to MarkoMackic/picocli
that referenced
this issue
Oct 17, 2021
This reverts commit 9ef376a.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://picocli.info/apidocs/picocli/CommandLine.Option.html#arity-- says:
However specifying a parameter is not resulting in error by default:
The error only appears when we explicitly add
arity = "0"
to the above@Option
declaration:option '--option' (<option>) should be specified without 'true' parameter
which, by the documentation, should already be the default.
The text was updated successfully, but these errors were encountered: