Skip to content

Commit

Permalink
TASK: Adjust console output for --help flag
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemke committed Nov 4, 2024
1 parent b9fc7ea commit 4188d09
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Neos.Flow/Classes/Command/HelpCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected function displayHelpIndex()

$this->outputLine('* = compile time command');
$this->outputLine();
$this->outputLine('See "%s help <commandidentifier>" 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();
}

Expand Down Expand Up @@ -212,11 +212,10 @@ protected function displayHelpForCommand(Command $command)
if (count($optionDescriptions) > 0) {
$this->outputLine();
$this->outputLine('<b>OPTIONS:</b>');
$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() !== '') {
Expand Down Expand Up @@ -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 <commandIdentifier>" for a detailed description of the corresponding command.', [$this->getFlowInvocationString()]);
$this->outputLine('or "%s <commandIdentifier> --help" for a detailed description of the corresponding command.', [$this->getFlowInvocationString()]);
$this->quit(1);
}

Expand Down

0 comments on commit 4188d09

Please sign in to comment.