/** * 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]); }
/** * {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']]); }