/**
     * {@inheritdoc}
     * 
     * @return ConsoleOptionParser
     */
    public function getOptionParser()
    {
        $parser = parent::getOptionParser();
        $parser->addOption('range', array('help' => 'Either a date range (separator "-") in format ' . Configure::read('Task.dateFormat')))->addOption('interval', array('help' => 'Interval in date time format (for ex: 15 minutes, 1 hour, 2 days). Defaults 1 day'))->addOption('debug', array('help' => 'Sets debug level', 'short' => 'd', 'default' => Configure::read('debug')));
        if (CakePlugin::loaded('Task')) {
            $parser->addOption('scheduled', array('help' => 'If set then script will be run by task daemon', 'boolean' => true))->addOption('scheduled-no-split', array('help' => 'If set then script will not be splitten by arguments', 'boolean' => true))->addOption('scheduled-process-timeout', array('help' => 'Sets task process timeout', 'default' => Configure::read('Task.timeout')))->addOption('scheduled-depends-on', array('help' => 'Tasks ids that must be done before current task can start. Format: coma separated'))->addOption('scheduled-wait-prev', array('help' => 'If `yes` each task will wait for previous task, else each task will run independenly. 
						See `$_scheduleNextTaskDependsOnPrevious` for script defaults that used when this parameter 
						was omitted.'));
        } else {
            $parser->epilog($parser->epilog() . "\n" . 'For using `scheduled` install and enable Task plugin https://github.com/imsamurai/cakephp-task-plugin');
        }
        return $parser;
    }
 /**
  * {@inheritdoc}
  * 
  * @return ConsoleOptionParser
  */
 public function getOptionParser()
 {
     return parent::getOptionParser()->description('Test task help');
 }
 /**
  * {@inheritdoc}
  *
  * @return ConsoleOptionParser
  */
 public function getOptionParser()
 {
     return parent::getOptionParser()->description('Task shell');
 }
 /**
  * {@inheritdoc}
  *
  * @var ConsoleOptionParser 
  */
 public function getOptionParser()
 {
     $parser = parent::getOptionParser();
     return $parser->description('Manage cache');
 }