Skip to content

Commit

Permalink
[#1409][#1463] DOC: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Nov 17, 2021
1 parent 33537c7 commit 70f91b7
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 @@ -3161,7 +3161,7 @@ Picocli does not instantiate the group if none of the options in the group is sp

Below are some recommendations for using default values in argument group options and positional parameters:

* specify default values in both the `@Option` annotation, and in the initial value of the `@Option`-annotated field. Yes, that means some duplication. This recommendation holds for positional `@Parameters`.
* specify default values in both the `@Option` annotation, and in the initial value of the `@Option`-annotated field. Yes, that means some duplication. This recommendation also holds for positional `@Parameters`.
* the application needs to manually instantiate the `@ArgGroup`-annotated field. More details follow below.

The default value in the `@Option` or `@Parameters` annotation means that picocli can <<Showing Default Values in Group Usage Help,show the default value>> in the usage help, and the initial value means that any new instance of the group that contains the option will already have the default value assigned to that option field.
Expand Down

0 comments on commit 70f91b7

Please sign in to comment.