Skip to content

Commit

Permalink
#147 Update user manual for "Toggle boolean flags instead of setting …
Browse files Browse the repository at this point in the history
…to true"
  • Loading branch information
remkop committed Aug 8, 2017
1 parent 15cc2c8 commit 7a66460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Arity is the number of parameters that will be consumed by an option.
=== Default Arity
The default arity value of an `@Option` or `@Parameters` field depends on its type.

* Boolean fields: the default arity is 0 (consume zero parameters) the field is set to `true` when the option name is recognized. (You can <<Boolean Parameters,change this>>.)
* Boolean fields: the default arity is 0 (consume zero parameters) the field is toggled to its logical negative when the option name is recognized. (You can <<Boolean Parameters,change this>>.)
* Single-valued types like `int`, `String`, `File`: arity is 1 (consume one parameter). Omitting the option parameter results in a ParameterException: "Missing required parameter for field '<field-name>'".
* Multi-valued types like arrays or collections: consume from zero up to all available parameters (until encountering another option or <<Subcommands,subcommand>>).

Expand Down

0 comments on commit 7a66460

Please sign in to comment.