mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
Ignore --help and --version in Deprecator. Fixes #1030
This commit is contained in:
@@ -17,7 +17,7 @@ module Jekyll
|
||||
end
|
||||
|
||||
def self.no_subcommand(args)
|
||||
if args.size == 0 || args.first =~ /^--/
|
||||
if args.size == 0 || (args.first =~ /^--/ && !%w[--help --version].include?(args.first))
|
||||
Jekyll::Logger.error "Deprecation:", "Jekyll now uses subcommands instead of just \
|
||||
switches. Run `jekyll help' to find out more."
|
||||
exit(1)
|
||||
|
||||
Reference in New Issue
Block a user