class Thor::Arguments

def initialize(arguments=[])


Takes an array of Thor::Argument objects.
def initialize(arguments=[])
  @assigns, @non_assigned_required = {}, []
  @switches = arguments
  arguments.each do |argument|
    if argument.default
      @assigns[argument.human_name] = argument.default
    elsif argument.required?
      @non_assigned_required << argument
    end
  end
end