Command::addOption()

Command addOption(string $name, string $shortcut = null, int $mode = null, string $description = '', mixed $default = null)

Adds an option.

Parameters

string $name The option name
string $shortcut The shortcut (can be null)
int $mode The option mode: One of the InputOption::VALUE_* constants
string $description A description text
mixed $default The default value (must be null for InputOption::VALUE_NONE)

Return Value

Command The current instance
doc_Symfony
2016-10-28 06:09:40
Comments
Leave a Comment

Please login to continue.