From 653bc21c6ab371a3506324151efc2f080d9fb8fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 19 Oct 2021 16:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-server/ServerCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/http-server/ServerCommand.php b/http-server/ServerCommand.php index 7fdf7107..a413b4fe 100644 --- a/http-server/ServerCommand.php +++ b/http-server/ServerCommand.php @@ -52,7 +52,7 @@ class ServerCommand extends Command $this->setName('sw:server') ->setDescription('server start|stop|reload|restart') ->addArgument('action', InputArgument::REQUIRED) - ->addOption('daemon'); + ->addOption('daemon','d'); } @@ -66,8 +66,7 @@ class ServerCommand extends Command { try { $manager = Kiri::app()->getServer(); - var_dump($input->hasOption('daemon')); - $manager->setDaemon((int)$input->hasOption('--daemon')); + $manager->setDaemon((int)$input->hasOption('daemon')); if (!in_array($input->getArgument('action'), self::ACTIONS)) { throw new Exception('I don\'t know what I want to do.'); }