lib/clin/command_parser.rb
# Parse the argument. The options must have been strip out first.
Parse the argument. The options must have been strip out first.
Parse the argument . The options must have been strip out first .
def parse_arguments(argv)
    @command.args.each do |arg|
      value, argv = arg.parse(argv)
      @arguments[arg.name.to_sym] = value
    end
    @arguments.delete_if { |_, v| v.nil? }
    @arguments
  rescue Clin::ArgumentError => e
    add_error e
  end
def parse_arguments ( argv ) @command . args . each do | arg | value , argv = arg . parse ( argv ) @arguments [ arg . name . to_sym ] = value end @arguments . delete_if { | _ , v | v . nil? } @arguments rescue Clin :: ArgumentError => e add_error e end
Parse the argument.
Parse the argument .
argv
<not_specific>