示例#1
0
 /**
  * Register default global commands
  *
  * @param Console $console
  */
 public function add_global_commands(Console $console)
 {
     $console->add_arg('help', ['prefix' => 'h', 'longPrefix' => 'help', 'description' => static::lang('console_display_help'), 'noValue' => true]);
 }
示例#2
0
 /**
  * {inheridoc}
  */
 public function register(Console $command)
 {
     $command->add_arg(['list' => ['prefix' => 'l', 'longPrefix' => 'list', 'description' => Console::lang('console_migration_arg_list'), 'noValue' => true], 'current' => ['prefix' => 'c', 'longPrefix' => 'current', 'description' => Console::lang('console_migration_arg_current'), 'noValue' => true], 'to' => ['prefix' => 't', 'longPrefix' => 'to', 'description' => Console::lang('console_migration_arg_to'), 'castTo' => 'int']]);
 }