[BUGFIX] Improve the formatting of help of the CommandController
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Mvc / Cli / Command.php
index 662d973..90f14fa 100644 (file)
@@ -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++;