class Thor

def self.start(args = ARGV)

def self.start(args = ARGV)
  options = Thor::Options.new(self.opts)
  opts = options.parse(args, false)
  args = options.trailing_non_opts
  meth = args.first
  meth = @map[meth].to_s if @map && @map[meth]
  meth ||= "help"
  
  tasks[meth].parse new(opts, *args), args[1..-1]
rescue Thor::Error => e
  $stderr.puts e.message
end