JobsCommand: support standalone 'forever' as...

...shown in the documentation
This commit is contained in:
Thomas Gelf 2016-07-20 17:42:33 +02:00
parent 9a6320c2f4
commit 805a7c687c

View File

@ -19,6 +19,11 @@ class JobsCommand extends Command
public function runAction()
{
$forever = $this->params->shift('forever');
if (! $forever && $this->params->getStandalone() === 'forever') {
$forever = true;
$this->params->shift();
}
$jobId = $this->params->shift();
if ($jobId) {
$job = DirectorJob::load($jobId, $this->db());