From 2105c6f47220e1b83af09d68e7d2eb35f36c5336 Mon Sep 17 00:00:00 2001 From: Stefano Kowalke <blueduck@gmx.net> Date: Thu, 5 Jun 2014 19:21:30 +0200 Subject: [PATCH] [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 --- typo3/sysext/extbase/Classes/Mvc/Cli/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/extbase/Classes/Mvc/Cli/Command.php b/typo3/sysext/extbase/Classes/Mvc/Cli/Command.php index 662d9734c675..90f14fab4a3c 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Cli/Command.php +++ b/typo3/sysext/extbase/Classes/Mvc/Cli/Command.php @@ -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++; -- GitLab