class Thor

def normalize_task_name(meth) #:nodoc:

:nodoc:
If a map can't be found use the sent name or the default task.
Receives a task name (can be nil), and try to get a map from it.
def normalize_task_name(meth) #:nodoc:
  meth = map[meth.to_s] || find_subcommand_and_update_argv(meth) || meth || default_task
  meth.to_s.gsub('-','_') # treat foo-bar > foo_bar
end