class Thor

def create_task(meth) #:nodoc:

:nodoc:
def create_task(meth) #:nodoc:
  if @usage && @desc
    tasks[meth.to_s] = Thor::Task.new(meth, @desc, @usage, method_options)
    @usage, @desc, @method_options = nil
    true
  elsif self.all_tasks[meth.to_s] || meth.to_sym == :method_missing
    true
  else
    puts "[WARNING] Attempted to create task #{meth.inspect} without usage or description. " <<
         "Call desc if you want this method to be available as task or declare it inside a " <<
         "no_tasks{} block. Invoked from #{caller[1].inspect}."
    false
  end
end