@@ -45,12 +45,22 @@ public function __construct($name, TaskSchedulerInterface $runner)
4545 protected function configure ()
4646 {
4747 $ this
48- ->setDescription ('Run pending tasks ' )
49- ->addArgument ('handlerClass ' , InputArgument::REQUIRED )
50- ->addArgument ('workload ' , InputArgument::OPTIONAL )
51- ->addOption ('cron-expression ' , 'c ' , InputOption::VALUE_REQUIRED )
52- ->addOption ('execution-date ' , null , InputOption::VALUE_REQUIRED )
53- ->addOption ('end-date ' , null , InputOption::VALUE_REQUIRED );
48+ ->setDescription ('Schedule task ' )
49+ ->setHelp (<<<'EOT'
50+ The <info>%command.name%</info> command schedules given handler.
51+
52+ $ %command.full_name% AppBundle\\Handler\\ImageHandler
53+
54+ Execute without any arguments in order to see schedule a single task, use the
55+ <comment>--workload</comment> option in order to specify a workload or
56+ <comment>--cron-expression</comment> to create a recurring task.
57+ EOT
58+ )
59+ ->addArgument ('handlerClass ' , InputArgument::REQUIRED , 'Handler which will be called ' )
60+ ->addArgument ('workload ' , InputArgument::OPTIONAL , 'This will be passed to the handler ' )
61+ ->addOption ('cron-expression ' , 'c ' , InputOption::VALUE_REQUIRED , 'Specifies interval for recurring task ' )
62+ ->addOption ('execution-date ' , null , InputOption::VALUE_REQUIRED , 'Specifies execution-date for single task ' )
63+ ->addOption ('end-date ' , null , InputOption::VALUE_REQUIRED , 'Specifies last run date for recurring tasks ' );
5464 }
5565
5666 /**
0 commit comments