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.
package |
Default |
---|
__construct( $option = null)
mixed | null
addChoice( $choices) : $this
string
$this
getArgName() : string
string
getChoices() : array
array
getDefaultValue() : string
string
getDescription() : string
string
getLongName() : string
string
getName() : string
string
getShortName() : string
string
isFlag() : boolean
boolean
isHelp() : boolean
boolean
isHidden() : boolean
boolean
isMultiValued() : boolean
boolean
isRequired() : boolean
boolean
isSingleValued() : boolean
boolean
setArgName( $argName) : $this
string
$this
setChoices( $choices) : $this
string
$this
setDefaultValue( $defaultValue) : $this
string
$this
setDescription( $description) : $this
string
$this
setFlag( $flag) : $this
boolean
$this
setHelp( $help) : $this
boolean
$this
setHidden( $hidden) : $this
boolean
$this
setLongName( $longName) : $this
string
$this
setMultiValued( $multiValued) : $this
boolean
$this
setRequired( $required) : $this
boolean
$this
setShortName( $shortName) : $this
string
$this
setSingleValued( $singleValued) : $this
boolean
$this