lib/clin/command_parser.rb
# Method called after the argument have been parsed and before creating the command
# @param params [Array<String>] Parsed params from the command line.
Method called after the argument have been parsed and before creating the command
Method called after the argument have been parsed and before creating the command
def redispatch(params)
    commands = @command._redispatch_args.last
    commands ||= @command.default_commands
    dispatcher = Clin::CommandDispatcher.new(commands)
    begin
      dispatcher.parse(redispatch_arguments(params))
    rescue Clin::HelpError
      raise Clin::HelpError, @command
    end
  end
def redispatch ( params ) commands = @command . _redispatch_args . last commands ||= @command . default_commands dispatcher = Clin :: CommandDispatcher . new ( commands ) begin dispatcher . parse ( redispatch_arguments ( params ) ) rescue Clin :: HelpError raise Clin :: HelpError , @command end end
Method called after the argument have been parsed and before creating the command
Method called after the argument have been parsed and before creating the command
params
Parsed params from the command line.
Parsed params from the command line .