From 36fedb789ef982173dca0a9163043a2223608772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 4 Nov 2021 18:50:42 +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 --- ServerCommand.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ServerCommand.php b/ServerCommand.php index a43c26e..551c119 100644 --- a/ServerCommand.php +++ b/ServerCommand.php @@ -6,7 +6,6 @@ namespace Server; use Annotation\Inject; use Exception; -use Http\Handler\Router; use Kiri\Abstracts\Config; use Kiri\Events\EventProvider; use Kiri\Exception\ConfigException; @@ -49,7 +48,7 @@ class ServerCommand extends Command { $this->setName('sw:server') ->setDescription('server start|stop|reload|restart') - ->addArgument('action', InputArgument::REQUIRED) + ->addArgument('action', InputArgument::OPTIONAL, 'run action', 'start') ->addOption('daemon', 'd', InputOption::VALUE_OPTIONAL, 'is run daemonize', -1); }