If the subcommand cannot be found, suggest the installation of a gem.
This commit is contained in:
parent
4fe9eecf05
commit
d37de5c8df
|
@ -40,8 +40,11 @@ Mercenary.program(:jekyll) do |p|
|
||||||
puts p
|
puts p
|
||||||
abort
|
abort
|
||||||
else
|
else
|
||||||
unless p.has_command?(args.first)
|
subcommand = args.first
|
||||||
Jekyll.logger.abort_with "Invalid command. Use --help for more information"
|
unless p.has_command? subcommand
|
||||||
|
Jekyll.logger.abort_with "fatal: 'jekyll #{args.first}' could not" \
|
||||||
|
" be found. You may need to install the jekyll-#{args.first} gem" \
|
||||||
|
" or a related gem to be able to use this subcommand."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue