class Bundler::Thor::Arguments

def initialize(arguments = [])


Takes an array of Bundler::Thor::Argument objects.
def initialize(arguments = [])
  @assigns = {}
  @non_assigned_required = []
  @switches = arguments
  arguments.each do |argument|
    if !argument.default.nil?
      begin
        @assigns[argument.human_name] = argument.default.dup
      rescue TypeError  # Compatibility shim for un-dup-able Fixnum in Ruby < 2.4
        @assigns[argument.human_name] = argument.default
      end
    elsif argument.required?
      @non_assigned_required << argument
    end
  end
end