module Thor::Invocation::ClassMethods

def prepare_for_invocation(key, name) #:nodoc:

:nodoc:

have the invoked class options showed in help messages in generators.
Prepare for class methods invocations. This method must return a klass to
def prepare_for_invocation(key, name) #:nodoc:
  case name
    when Symbol, String
      Thor::Util.namespace_to_thor_class_and_task(name.to_s, false)
    else
      name
  end
end