module Thor::Base::ClassMethods

def remove_task(*names)


to be undefined from the class as well.
options:: You can give :undefine => true if you want tasks the method
name:: The name of the task to be removed
==== Parameters

:undefine => true to undefine the method from the class as well.
By default it only remove the mapping to the task. But you can supply

anymore.
are inheriting from another class and don't want it to be available
Removes a given task from this Thor class. This is usually done if you
def remove_task(*names)
  options = names.last.is_a?(Hash) ? names.pop : {}
  names.each do |name|
    tasks.delete(name.to_s)
    all_tasks.delete(name.to_s)
    undef_method name if options[:undefine]
  end
end