class Bundler::Thor

def map(mappings = nil, **kw)


Hash[String|Array => Symbol]:: Maps the string or the strings in the array to the given command.
==== Parameters

Will invoke the list command.

thor -T

Running:

map "-T" => "list"

Maps an input to a command. If you define:
def map(mappings = nil, **kw)
  @map ||= from_superclass(:map, {})
  if mappings && !kw.empty?
    mappings = kw.merge!(mappings)
  else
    mappings ||= kw
  end
  if mappings
    mappings.each do |key, value|
      if key.respond_to?(:each)
        key.each { |subkey| @map[subkey] = value }
      else
        @map[key] = value
      end
    end
  end
  @map
end