/**
* 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();
}