Print a helpful message when encountering an unknown command
This commit is contained in:
parent
9efa9d8009
commit
623d73cc0a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue