17 use Symfony\Component\Console\Command\Command;
18 use Symfony\Component\Console\Input\InputInterface;
19 use Symfony\Component\Console\Output\OutputInterface;
27 class HelpCommand extends \Symfony\Component\Console\Command\HelpCommand
42 $this->setAliases([]);
50 if (
null === $this->command) {
51 $this->command = $this->getApplication()->find($input->getArgument(
'command_name'));
55 if ($input->getArgument(
'command') ===
'extbase:help' || $input->getArgument(
'command') ===
'extbase:help:help') {
56 $_SERVER[
'argv'][1] =
'extbase:help:help';
57 $bootstrap = GeneralUtility::makeInstance(Bootstrap::class);
58 $bootstrap->run(
'', []);
62 $args = [$_SERVER[
'argv'][0],
'help'];
63 foreach ($_SERVER[
'argv'] as $k => $value) {
64 if ($k === 0 || $value ===
'--help' || $value ===
'-h') {
72 $bootstrap = GeneralUtility::makeInstance(Bootstrap::class);
73 $bootstrap->run(
'', []);