Print an error message in bin/jekyll with no arguments

This commit is contained in:
Parker Moore 2014-12-28 14:37:14 -05:00
parent ac41312c5d
commit 8c19a6f430
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ Mercenary.program(:jekyll) do |p|
p.action do |args, options| p.action do |args, options|
if args.empty? if args.empty?
Jekyll.logger.error "A subcommand is required."
puts p puts p
else else
unless p.has_command?(args.first) unless p.has_command?(args.first)