[FOLLOWUP][TASK] Add -h --help as CLI option for scheduler 37/42137/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 30 Jul 2015 11:50:52 +0000 (13:50 +0200)
committerBenjamin Mack <benni@typo3.org>
Fri, 31 Jul 2015 16:22:55 +0000 (18:22 +0200)
Add missing command line arguments to the options array.

Resolves: #63699
Releases: master
Change-Id: Idca42989811e4b8059a520a6bc1329201b000bf4
Reviewed-on: http://review.typo3.org/42137
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/scheduler/Classes/Controller/SchedulerCliController.php

index 2a19138..e4885a5 100644 (file)
@@ -42,8 +42,15 @@ class SchedulerCliController {
        public function __construct() {
                $this->cli = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Controller\CommandLineController::class);
                $this->scheduler = GeneralUtility::makeInstance(\TYPO3\CMS\Scheduler\Scheduler::class);
+
+               // Empty options array here because Scheduler uses "-s" as argument too
+               $this->cli->cli_options = array();
                $this->cli->cli_options[] = array('-h', 'Show this output');
                $this->cli->cli_options[] = array('--help', 'Same as -h');
+               $this->cli->cli_options[] = array('-s', 'Stop the task which is passed with -i option');
+               $this->cli->cli_options[] = array('-i', 'UID of an task');
+               $this->cli->cli_options[] = array('-f', 'Force execution of the task which is passed with -i option');
+
                // Setting help texts:
                $this->cli->cli_help['name'] = 'scheduler -- Start the TYPO3 Scheduler from the command line';
                $this->cli->cli_help['synopsis'] = '###OPTIONS###';