class Thor::Task

def formatted_usage(klass=nil, namespace=false, show_options=true)


injected in the usage.
Returns the formatted usage. If a class is given, the class arguments are
def formatted_usage(klass=nil, namespace=false, show_options=true)
  formatted = if namespace.is_a?(String)
    "#{namespace}:"
  elsif klass && namespace
    "#{klass.namespace.gsub(/^default/,'')}:"
  else
    ""
  end
  formatted << formatted_arguments(klass)
  formatted << " #{formatted_options}" if show_options
  formatted.strip!
  formatted
end