class Bundler::Thor

def map(mappings = nil)


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)
  @map ||= from_superclass(:map, {})
  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