lib/clin/command_parser.rb
# Compute the list of argument to pass to the CommandDispatcher
# @param params [Hash] Options and Arguments of the CL
Compute the list of argument to pass to the CommandDispatcher
Compute the list of argument to pass to the CommandDispatcher
def redispatch_arguments(params)
    args, prefix = @command._redispatch_args
    args = args.map { |x| params[x] }.flatten.compact
    args = prefix.split + args unless prefix.nil?
    args += params[:skipped_options] if @command.skip_options?
    args
  end
def redispatch_arguments ( params ) args , prefix = @command . _redispatch_args args = args . map { | x | params [ x ] } . flatten . compact args = prefix . split + args unless prefix . nil? args += params [ :skipped_options ] if @command . skip_options? args end
Compute the list of argument to pass to the CommandDispatcher
Compute the list of argument to pass to the CommandDispatcher
params
Options and Arguments of the CL
Options and Arguments of the CL