Print a helpful message when encountering an unknown command

This commit is contained in:
Ben Hollis 2012-09-27 23:20:04 -07:00
parent 9efa9d8009
commit 623d73cc0a

View file

@ -71,7 +71,7 @@ module Middleman
end end
if klass.nil? if klass.nil?
super raise Thor::Error.new "There's no '#{meth}' command for Middleman. Try 'middleman help' for a list of commands."
else else
args.unshift(task) if task args.unshift(task) if task
klass.start(args, :shell => self.shell) klass.start(args, :shell => self.shell)