Merge pull request #3619 from jekyll/no-args-exit-1

Merge pull request 3619
This commit is contained in:
Parker Moore 2015-03-26 10:20:45 -07:00
commit 86211a020d
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ Mercenary.program(:jekyll) do |p|
if args.empty? if args.empty?
Jekyll.logger.error "A subcommand is required." Jekyll.logger.error "A subcommand is required."
puts p puts p
abort
else else
unless p.has_command?(args.first) unless p.has_command?(args.first)
Jekyll.logger.abort_with "Invalid command. Use --help for more information" Jekyll.logger.abort_with "Invalid command. Use --help for more information"