function HelpCommand::execute
Overrides Command::execute
File
-
vendor/
symfony/ console/ Command/ HelpCommand.php, line 62
Class
- HelpCommand
- HelpCommand displays the help for a given command.
Namespace
Symfony\Component\Console\CommandCode
protected function execute(InputInterface $input, OutputInterface $output) : int {
$this->command ??= $this->getApplication()
->find($input->getArgument('command_name'));
$helper = new DescriptorHelper();
$helper->describe($output, $this->command, [
'format' => $input->getOption('format'),
'raw_text' => $input->getOption('raw'),
]);
unset($this->command);
return 0;
}