mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
fix(timer): 修正定时器参数拼写 quit -> quiet(静默模式)
This commit is contained in:
@@ -35,7 +35,7 @@ class TimerBase extends Command
|
||||
// 指令配置
|
||||
$this->setName('timer')
|
||||
->addOption('temp', null, Option::VALUE_NONE)
|
||||
->addOption('quit', null, Option::VALUE_NONE)
|
||||
->addOption('quiet', null, Option::VALUE_NONE)
|
||||
->addOption('local', null, Option::VALUE_NONE)
|
||||
->addOption('local-host', null, Option::VALUE_OPTIONAL, '本地域名', 'http://localhost')
|
||||
->addOption('local-port', null, Option::VALUE_OPTIONAL, '本地端口', '8000')
|
||||
@@ -352,7 +352,7 @@ class TimerBase extends Command
|
||||
}
|
||||
|
||||
if (empty($list_promises)) {
|
||||
if (!$input->hasOption('quit')) {
|
||||
if (!$input->hasOption('quiet')) {
|
||||
$output->writeln(date('Y-m-d H:i:s') . ' no request');
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user