mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 01:08:26 -05:00
Merge pull request #3619 from jekyll/no-args-exit-1
Merge pull request 3619
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user