Sets the list of values accepted by this option. If the value set by the user does not match once of these
values, a {@link InvalidValueException} exception is thrown.
Sets the list of values accepted by this option. If the value set by the user does not match once of these
values, a {@link InvalidValueException} exception is thrown.
Returns string[]
getDefaultValue
getDefaultValue(): string
Sets the default value of this option
Returns string
getDescription
getDescription(): string
Sets te description of this option.
Returns string
getLongName
getLongName(): string
Sets the long name of this option.
Returns string
getName
getName(): string
Returns string
getShortName
getShortName(): string
Sets the short name of this option.
Returns string
isFlag
isFlag(): boolean
Configures the current Option to be a flag. It will be evaluated to true if it's found in
the command line. If you need a flag that may receive a value, use, in this order:
option.setFlag(true).setSingleValued(true)
Returns boolean
isHelp
isHelp(): boolean
Sets whether or not this option is a "help" option
Returns boolean
isHidden
isHidden(): boolean
Sets whether or not this option should be hidden
Returns boolean
isMultiValued
isMultiValued(): boolean
Sets whether or not this option can receive several values.
Returns boolean
isRequired
isRequired(): boolean
Sets whether or not this option is mandatory.
Returns boolean
isSingleValued
isSingleValued(): boolean
Sets whether or not this option can receive a value.
Sets the list of values accepted by this option. If the value set by the user does not match once of these
values, a {@link InvalidValueException} exception is thrown.
Configures the current Option to be a flag. It will be evaluated to true if it's found in
the command line. If you need a flag that may receive a value, use, in this order:
Models command line options. Options are values passed to a command line interface using -x or --x. Supported syntaxes depend on the parser.
Short name is generally used with a single dash, while long name requires a double-dash.