[BUGFIX] Allow value for CLI command cleanup:versions --action argument 00/57100/2
authorSimon Gilli <typo3@gilbertsoft.org>
Fri, 25 May 2018 17:48:07 +0000 (19:48 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Wed, 30 May 2018 21:27:38 +0000 (23:27 +0200)
Allow the usage of a value for --action argument of the CLI command
cleanup:versions as mentioned in the documentation and the
implementation.

Resolves: #85085
Related: #79109
Related: #82653
Releases: master, 8.7
Change-Id: I6c07303728bcb527b44a6c5bf811870f25398a21
Reviewed-on: https://review.typo3.org/57100
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/lowlevel/Classes/Command/WorkspaceVersionRecordsCommand.php

index 0e41d27..65e825b 100644 (file)
@@ -91,7 +91,7 @@ class WorkspaceVersionRecordsCommand extends Command
             ->addOption(
                 'action',
                 null,
-                InputOption::VALUE_NONE,
+                InputOption::VALUE_OPTIONAL,
                 'Specify which action should be taken. Set it to "versions_in_live", "published_versions", "invalid_workspace" or "unused_placeholders"'
             );
     }