Symfony\Component\Console\Command\Command::getHelp PHP Method

getHelp() public method

Returns the help for the command.
public getHelp ( ) : string
return string The help for the command
    public function getHelp()
    {
        return $this->help;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 protected function configure()
 {
     if ($this->isVersionCompatible()) {
         $this->command = $this->createCommand();
         $this->setHelp($this->command->getHelp());
         $this->setDefinition($this->command->getDefinition());
         $this->setDescription($this->command->getDescription());
     }
     $this->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command');
 }
All Usage Examples Of Symfony\Component\Console\Command\Command::getHelp