bin/jekyll: with no args, exit with exit code 1

fixes #3584
This commit is contained in:
Parker Moore 2015-03-25 19:03:14 -07:00
parent d67ad64335
commit c6dce1660b
1 changed files with 1 additions and 0 deletions

View File

@ -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"