# File lib/rhc/commands/base.rb, line 192 def self.argument(name, description, switches, options={}) arg_type = options[:arg_type] raise ArgumentError("Only the last argument descriptor for an action can be a list") if arg_type == :list and list_argument_defined? list_argument_defined true if arg_type == :list option_symbol = Commander::Runner.switch_to_sym(switches.last) args_metadata << {:name => name, :description => description, :switches => switches, :option_symbol => option_symbol, :arg_type => arg_type} end