改进console

This commit is contained in:
yunwuxin
2016-08-08 17:42:24 +08:00
parent 41f7145ace
commit 24fee2e423
28 changed files with 569 additions and 1659 deletions

View File

@@ -11,6 +11,7 @@
namespace think\console\command;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument as InputArgument;
use think\console\input\Option as InputOption;
@@ -60,9 +61,7 @@ EOF
$this->command = $this->getConsole()->find($input->getArgument('command_name'));
}
$helper = new DescriptorHelper();
$helper->describe($output, $this->command, [
$output->describe($this->command, [
'raw_text' => $input->getOption('raw'),
]);