mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
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
|
||||
|
||||
if klass.nil?
|
||||
super
|
||||
raise Thor::Error.new "There's no '#{meth}' command for Middleman. Try 'middleman help' for a list of commands."
|
||||
else
|
||||
args.unshift(task) if task
|
||||
klass.start(args, :shell => self.shell)
|
||||
|
|
Loading…
Reference in a new issue