Adds a new command option.
public addOption ( string $name, string | array $shortcut = null, integer $mode = null, string $description = '', mixed $default = null ) | ||
$name | string | The option name |
$shortcut | string | array | The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts |
$mode | integer | The option mode: One of the VALUE_* constants |
$description | string | A description text |
$default | mixed | The default value (must be null for self::VALUE_REQUIRED or self::VALUE_NONE) |