-o value
or --option value
-o=value
or --option=value
-ovalue
-ddd
or -d -d -d
would count as three occurrences.
For options, there is a distinct difference in multiple occurrences vs multiple values. For example, --opt val1 val2
is one occurrence, but two values. Whereas --opt val1 --opt val2
is two occurrences.` },
{ property: "possibleValues", optional: true, type: "string[]", description: `Specifies a list of possible values for this argument. At runtime, the CLI verifies that only one of the specified values was used, or fails with an error message.` },
{ property: "minValues", optional: true, type: "number", description: `Specifies the minimum number of values for this argument.
For example, if you had a -f <file> argument where you wanted at least 2 "files" you would set minValues: 2
, and this argument would be satisfied if the user provided, 2 or more values.` },
{ property: "maxValues", optional: true, type: "number", description: `Specifies the maximum number of values for this argument.
For example, if you had a -f <file> argument where you wanted up to 3 "files" you would set max_values: 3
, and this argument would be satisfied if the user provided, 1, 2, or 3 values.` },
{ property: "required", optional: true, type: "boolean", description: `Sets whether or not the argument is required by default.
"required by default" means it is required, when no other conflicting rules have been evaluated
conflicting rules take precedence over being required.` },
{ property: "requiredUnless", optional: true, type: "string", description: `Sets an arg that overrides this arg's required setting."conflictsWith"
but allows specifying multiple two-way conflicts per argument.` },
{ property: "requires", optional: true, type: "string", description: `Sets an argument by name that is required when this one is present.[arg: string, value: string]
.
"arg"
's value equals \${value}
.
[arg: string, value: string]
.
"arg"
's value equals \${value}
.
--option=val
syntax.