Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HelpCommand.php

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\Command

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal