Adds an option.
public addOption ( string $name, string $shortcut = null, integer $mode = null, string $description = '', mixed $default = null ) : |
||
$name | string | The option name |
$shortcut | string | The shortcut (can be null) |
$mode | integer | The option mode: One of the InputOption::VALUE_* constants |
$description | string | A description text |
$default | mixed | The default value (must be null for InputOption::VALUE_NONE) |
return | The current instance |