$_name
$_name : string
Name of the option
An object to represent a single option used in the command line.
ConsoleOptionParser creates these when you use addOption()
__construct(string|array $name, string $short = '', string $help = '', boolean $boolean = false, string $default = '', array $choices = array(), boolean $multiple = false)
Make a new Input Option
string|array | $name | The long name of the option, or an array with all the properties. |
string | $short | The short alias for this option |
string | $help | The help text for this option |
boolean | $boolean | Whether this option is a boolean option. Boolean options don't consume extra tokens |
string | $default | The default value for this option. |
array | $choices | Valid choices for this option. |
boolean | $multiple | Whether this option can accept multiple value definition. |
Loading…