Skip to content

Commit

Permalink
[#536] DOC fix: default arity for interactive options is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Apr 6, 2019
1 parent bbdea1b commit 3daa7c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -3521,7 +3521,7 @@ static Range adjustForType(Range result, TypedMember member) {
return result.isUnspecified ? defaultArity(member) : result;
}
/** Returns the default arity {@code Range}: for interactive options/positional parameters,
* this is "0..1"; for {@link Option options} this is 0 for booleans and 1 for
* this is 0; for {@link Option options} this is 0 for booleans and 1 for
* other types, for {@link Parameters parameters} booleans have arity 0, arrays or Collections have
* arity "0..*", and other types have arity 1.
* @param field the field whose default arity to return
Expand Down

0 comments on commit 3daa7c4

Please sign in to comment.