diff --git a/src/Command/StopCommand.php b/src/Command/StopCommand.php index dd1c172..090f2b8 100644 --- a/src/Command/StopCommand.php +++ b/src/Command/StopCommand.php @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $stopIds = []; - if (false !== $input->getOption('all')) { + if (false !== $input->getOption('all') || \count($running) === 1) { foreach ($running as $timesheet) { $stopIds[] = $timesheet->getId(); }