JobsCommand: shift 'forever' before checking for...

...single job name

fixes #12043
This commit is contained in:
Thomas Gelf 2016-06-26 13:53:58 +02:00
parent d0f7906f8b
commit 4c9c72d057
1 changed files with 2 additions and 1 deletions

View File

@ -17,13 +17,14 @@ class JobsCommand extends Command
{
public function runAction()
{
$forever = $this->params->shift('forever');
$job = $this->params->shift();
if ($job) {
echo "Running (theoretically) $job\n";
return;
}
if ($this->params->shift('forever')) {
if ($forever) {
$this->runforever();
} else {
$this->runAllPendingJobs();