Skip to content

Commit

Permalink
Revert "[remkop#1398][remkop#1400] additional clarification"
Browse files Browse the repository at this point in the history
This reverts commit 9ef376a.
  • Loading branch information
MarkoMackic committed Oct 17, 2021
1 parent 659edfa commit feb32ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -3746,8 +3746,7 @@ public enum ScopeType {
* </p>
* <b>A note on boolean options</b>
* <p>
* By default picocli allows boolean options (also called "flags" or "switches") to have an optional parameter,
* which must be either "true" or "false" (lowercase, other values are rejected).
* By default picocli allows boolean options (also called "flags" or "switches") to have an optional parameter.
* You can make a boolean option take a required parameter by annotating your field with {@code arity="1"}.
* For example: </p>
* <pre>&#064;Option(names = "-v", arity = "1") boolean verbose;</pre>
Expand Down

0 comments on commit feb32ed

Please sign in to comment.