/**
* {@inheritdoc}
*/
protected function renderHelp(BlockLayout $layout)
{
$help = $this->application->getConfig()->getHelp();
$commands = $this->application->getNamedCommands();
$globalArgsFormat = $this->application->getGlobalArgsFormat();
$argsFormat = ArgsFormat::build()->addArgument(new Argument('command', Argument::REQUIRED, 'The command to execute'))->addArgument(new Argument('arg', Argument::MULTI_VALUED, 'The arguments of the command'))->addOptions($globalArgsFormat->getOptions())->getFormat();
$this->renderName($layout, $this->application);
$this->renderUsage($layout, $this->application, $argsFormat);
$this->renderArguments($layout, $argsFormat->getArguments());
if ($argsFormat->hasOptions()) {
$this->renderGlobalOptions($layout, $argsFormat->getOptions());
}
if (!$commands->isEmpty()) {
$this->renderCommands($layout, $commands);
}
if ($help) {
$this->renderDescription($layout, $help);
}
}