Print an error message in bin/jekyll with no arguments
This commit is contained in:
parent
ac41312c5d
commit
8c19a6f430
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue