From 4188d0904f1344d6aa6705183b589233eb996200 Mon Sep 17 00:00:00 2001 From: Robert Lemke Date: Mon, 4 Nov 2024 18:07:43 +0100 Subject: [PATCH] TASK: Adjust console output for --help flag --- Neos.Flow/Classes/Command/HelpCommandController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Neos.Flow/Classes/Command/HelpCommandController.php b/Neos.Flow/Classes/Command/HelpCommandController.php index 6711fe6ff9..e3eeadbdd3 100644 --- a/Neos.Flow/Classes/Command/HelpCommandController.php +++ b/Neos.Flow/Classes/Command/HelpCommandController.php @@ -124,7 +124,7 @@ protected function displayHelpIndex() $this->outputLine('* = compile time command'); $this->outputLine(); - $this->outputLine('See "%s help " for more information about a specific command.', [$this->getFlowInvocationString()]); + $this->outputLine('Use "%s [command] --help" for more information about a command.', [$this->getFlowInvocationString()]); $this->outputLine(); } @@ -212,11 +212,10 @@ protected function displayHelpForCommand(Command $command) if (count($optionDescriptions) > 0) { $this->outputLine(); $this->outputLine('OPTIONS:'); + $optionDescriptions[] = vsprintf(' %-20s %s', ['--help', 'Shows detailed information about this command']); foreach ($optionDescriptions as $optionDescription) { $this->outputLine($optionDescription); } - $this->outputLine('--help'); - $this->outputLine('Shows information about the specific command and which parameters are available'); } if ($command->getDescription() !== '') { @@ -262,7 +261,7 @@ public function errorCommand(CommandException $exception) } $this->outputLine(); $this->outputLine('Enter "%s help" for an overview of all available commands', [$this->getFlowInvocationString()]); - $this->outputLine('or "%s help " for a detailed description of the corresponding command.', [$this->getFlowInvocationString()]); + $this->outputLine('or "%s --help" for a detailed description of the corresponding command.', [$this->getFlowInvocationString()]); $this->quit(1); }