Merge pull request #3619 from jekyll/no-args-exit-1
Merge pull request 3619
This commit is contained in:
commit
86211a020d
|
@ -31,6 +31,7 @@ Mercenary.program(:jekyll) do |p|
|
|||
if args.empty?
|
||||
Jekyll.logger.error "A subcommand is required."
|
||||
puts p
|
||||
abort
|
||||
else
|
||||
unless p.has_command?(args.first)
|
||||
Jekyll.logger.abort_with "Invalid command. Use --help for more information"
|
||||
|
|
Loading…
Reference in New Issue