mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进make指令
This commit is contained in:
@@ -26,7 +26,7 @@ class Controller extends \think\console\command\Make
|
||||
$this
|
||||
->setName('make:controller')
|
||||
->setDescription('Create a new controller class')
|
||||
->addArgument('namespace', Argument::OPTIONAL, null)
|
||||
->addArgument('namespace', Argument::REQUIRED)
|
||||
->addOption('module', 'm', Option::VALUE_OPTIONAL, 'Module Name', null)
|
||||
->addOption('extend', 'e', Option::VALUE_OPTIONAL, 'Base on Controller class', null);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class Model extends \think\console\command\Make
|
||||
$this
|
||||
->setName('make:model')
|
||||
->setDescription('Create a new model class')
|
||||
->addArgument('namespace', Argument::OPTIONAL, null)
|
||||
->addArgument('namespace', Argument::REQUIRED)
|
||||
->addOption('module', 'm', Option::VALUE_OPTIONAL, 'Module Name', null)
|
||||
->addOption('extend', 'e', Option::VALUE_OPTIONAL, 'Base on Model class', null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user