fix(timer): 修正定时器参数拼写 quit -> quiet(静默模式)

This commit is contained in:
augushong
2026-06-02 20:09:37 +08:00
parent 288724efc8
commit c4fbd60bbc
6 changed files with 7 additions and 7 deletions

View File

@@ -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 {