Skip to content
Snippets Groups Projects
Commit 2105c6f4 authored by Stefano Kowalke's avatar Stefano Kowalke Committed by Markus Klein
Browse files

[BUGFIX] Improve the formatting of help of the CommandController

This aligns the description of the command line options.

Resolves: #59372
Releases: 6.2
Change-Id: I474f8415d3ed62d583553f915edc3caa8189a803
Reviewed-on: https://review.typo3.org/30594
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
parent 928b165e
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ class Command {
$explodedAnnotation = explode(' ', $annotations['param'][$i]);
array_shift($explodedAnnotation);
array_shift($explodedAnnotation);
$description = implode(' ', $explodedAnnotation);
$description = ltrim(implode(' ', $explodedAnnotation));
$required = $commandParameterDefinition['optional'] !== TRUE;
$commandArgumentDefinitions[] = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Cli\\CommandArgumentDefinition', $commandParameterName, $required, $description);
$i++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment