diff --git a/ServerCommand.php b/ServerCommand.php index c22e2e2..a667194 100644 --- a/ServerCommand.php +++ b/ServerCommand.php @@ -52,7 +52,7 @@ class ServerCommand extends Command public function execute(InputInterface $input, OutputInterface $output): int { $manager = Kiri::app()->getServer(); - $manager->setDaemon((int)!is_null($input->getOption('daemon'))); + $manager->setDaemon((int)!is_null($input->hasOption('daemon'))); $this->scan_file();