Merge pull request #617 from bhollis/cli

Print a helpful message when encountering an unknown command
This commit is contained in:
Thomas Reynolds 2012-09-28 10:27:21 -07:00
commit 58be0f7af9

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)