diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/Command/Background/ListCommand.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Command/Background/ListCommand.php b/core/Command/Background/ListCommand.php index 0ba2b8a2194..44ae72c2c9b 100644 --- a/core/Command/Background/ListCommand.php +++ b/core/Command/Background/ListCommand.php @@ -67,7 +67,9 @@ class ListCommand extends Base { protected function execute(InputInterface $input, OutputInterface $output): int { $jobs = $this->jobList->getJobsIterator($input->getOption('class'), (int)$input->getOption('limit'), (int)$input->getOption('offset')); - $output->writeln("Output is currently limited to first " . $input->getOption('limit') . " jobs. Specify `-l, --limit[=LIMIT]` to override."); + if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) { + $output->writeln("Output is currently limited to first " . $input->getOption('limit') . " jobs. Specify `-l, --limit[=LIMIT]` to override."); + } $this->writeTableInOutputFormat($input, $output, $this->formatJobs($jobs)); return 0; } |