From 600829645da21194ac6387eb63564bd05c037e0a Mon Sep 17 00:00:00 2001 From: jerry Date: Thu, 25 Mar 2021 16:56:08 +0800 Subject: [PATCH] fix init command --- src/ZM/Command/InitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZM/Command/InitCommand.php b/src/ZM/Command/InitCommand.php index 8ed99786..8597f80f 100644 --- a/src/ZM/Command/InitCommand.php +++ b/src/ZM/Command/InitCommand.php @@ -38,7 +38,7 @@ class InitCommand extends Command if (LOAD_MODE === 1) { // 从composer依赖而来的项目模式,最基本的需要初始化的模式 $output->writeln("Initializing files"); $base_path = LOAD_MODE_COMPOSER_PATH; - $args = $input->getArgument("force"); + $args = $input->getOption("force"); foreach ($this->extract_files as $file) { if (!file_exists($base_path . $file) || $args) { $info = pathinfo($file);