This commit is contained in:
2021-12-12 02:45:39 +08:00
parent 8229395e6d
commit 6e5b545a1e
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -52,12 +52,12 @@ class GiiCommand extends Command
$gii = Kiri::app()->get('gii');
$connections = Kiri::app()->get('db');
if (($db = $input->getArgument('databases')) != null) {
if (($db = $input->getOption('databases')) != null) {
$gii->run($connections->get($db), $input);
return 1;
}
$action = $input->getArgument('make');
$action = $input->getOption('make');
if (!in_array($action, ['model', 'controller'])) {
$gii->run(null, $input);
return 1;