function LazyCommand::addOption
Parameters
array|\Closure(CompletionInput,CompletionSuggestions):list<string|Suggestion> $suggestedValues The values used for input completion:
Overrides Command::addOption
File
-
vendor/
symfony/ console/ Command/ LazyCommand.php, line 130
Class
- LazyCommand
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\Console\CommandCode
public function addOption(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null, array|\Closure $suggestedValues = []) : static {
$this->getCommand()
->addOption($name, $shortcut, $mode, $description, $default, $suggestedValues);
return $this;
}