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