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.Anything
Object
Option
BaseDataObject
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
Option(String? argName = null, {String*}? choices = null, String? defaultValue = null, String? description = null, Boolean? flag = null, Boolean? help = null, Boolean? hidden = null, String? longName = null, Boolean? multiValued = null, String? name = null, Boolean? required = null, String? shortName = null, Boolean? singleValued = null) Parameters:
|
Attributes | |
argName | shared String? argName Sets te arg name for this option. |
choices | shared {String*}? choices Sets the list of values accepted by this option. If the value set by the user does not match once of these
values, a |
defaultValue | shared String? defaultValue Sets the default value of this option |
description | shared String? description Sets te description of this option. |
flag | shared Boolean? flag Configures the current Option to be a flag. It will be evaluated to |
help | shared Boolean? help Sets whether or not this option is a “help” option |
shared Boolean? hidden Sets whether or not this option should be hidden | |
longName | shared String? longName Sets the long name of this option. |
multiValued | shared Boolean? multiValued Sets whether or not this option can receive several values. |
name | shared String? name |
required | shared Boolean? required Sets whether or not this option is mandatory. |
shortName | shared String? shortName Sets the short name of this option. |
singleValued | shared Boolean? singleValued Sets whether or not this option can receive a value. |
Inherited Attributes |
Attributes inherited from: Object hash , string |