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?
|
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"
|
||||||
|
|
Loading…
Reference in New Issue