Read {@link Option} for a more detailed description of console options.
public addOption ( string $longName, string $shortName = null, integer $flags, string $description = null, mixed $default = null, string $valueName = '...' ) : |
||
$longName | string | The long option name. |
$shortName | string | The short option name. Can be `null`. |
$flags | integer | A bitwise combination of the flag constants in the {@link Option} class. |
$description | string | A one-line description of the option. |
$default | mixed | The default value. Must be `null` if the flags contain {@link Option::REQUIRED_VALUE}. |
$valueName | string | The name of the value to be used in usage examples of the option. |
return | The current instance. |