改进指令的判断

This commit is contained in:
thinkphp
2018-01-10 15:46:14 +08:00
parent df1c05a988
commit 12b30a4329
2 changed files with 5 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class Config extends Command
protected function execute(Input $input, Output $output)
{
if ($input->hasArgument('module')) {
if ($input->getArgument('module')) {
$module = $input->getArgument('module') . DS;
} else {
$module = '';