From 413d783d53dff02143f6f80562588b3c66a1c7d5 Mon Sep 17 00:00:00 2001 From: sunxyw Date: Sat, 31 Dec 2022 23:01:00 +0800 Subject: [PATCH] use built-in default value --- src/ZM/Command/BuildCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZM/Command/BuildCommand.php b/src/ZM/Command/BuildCommand.php index 1834e5c2..d338e7fe 100644 --- a/src/ZM/Command/BuildCommand.php +++ b/src/ZM/Command/BuildCommand.php @@ -19,14 +19,14 @@ class BuildCommand extends Command protected function configure() { $this->setHelp('此功能将会把整个项目打包为 Phar'); - $this->addOption('target', 'D', InputOption::VALUE_REQUIRED, '指定输出文件位置'); + $this->addOption('target', 'D', InputOption::VALUE_REQUIRED, '指定输出文件位置', 'zm.phar'); } protected function handle(): int { $this->ensurePharWritable(); - $target = $this->input->getOption('target') ?? 'zm.phar'; + $target = $this->input->getOption('target'); if (FileSystem::isRelativePath($target)) { $target = SOURCE_ROOT_DIR . '/' . $target; }