This commit is contained in:
2021-11-04 18:53:31 +08:00
parent 36fedb789e
commit d46f09bd18
+3
View File
@@ -64,6 +64,9 @@ class ServerCommand extends Command
try {
$manager = Kiri::app()->getServer();
$manager->setDaemon((int)is_null($input->getOption('daemon')));
if (is_null($input->getArgument('action'))) {
$input->setArgument('action', 'restart');
}
if (!in_array($input->getArgument('action'), self::ACTIONS)) {
throw new Exception('I don\'t know what I want to do.');
}