public function CommandConfigureEvent::addOption in Update helper 8
Add option to command.
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).
File
- src/
Events/ CommandConfigureEvent.php, line 56
Class
- CommandConfigureEvent
- Event for command configure.
Namespace
Drupal\update_helper\EventsCode
public function addOption($name, $shortcut = NULL, $mode = NULL, $description = '', $default = NULL) {
$this->command
->addOption($name, $shortcut, $mode, $description, $default);
}