Symfony\Component\Console\Application::getHelp PHP Метод

getHelp() публичный Метод

Gets the help message.
public getHelp ( ) : string
Результат string A help message
    public function getHelp()
    {
        return $this->getLongVersion();
    }

Usage Example

Пример #1
0
 /**
  * Gets the help message.
  *
  * It's a hack of the default help message to display the --shell
  * option only for the application and not for all the commands.
  *
  * @return string A help message.
  */
 public function getHelp()
 {
     // If we are already in a shell
     // we do not want to have the --shell option available
     if ($this->in_shell) {
         return parent::getHelp();
     }
     $this->getDefinition()->addOption(new InputOption('--shell', '-s', InputOption::VALUE_NONE, $this->user->lang('CLI_DESCRIPTION_OPTION_SHELL')));
     return parent::getHelp();
 }
All Usage Examples Of Symfony\Component\Console\Application::getHelp