Ignore --help and --version in Deprecator. Fixes #1030
This commit is contained in:
parent
60bbcaa863
commit
c7b707cdfd
|
@ -17,7 +17,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.no_subcommand(args)
|
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 \
|
Jekyll::Logger.error "Deprecation:", "Jekyll now uses subcommands instead of just \
|
||||||
switches. Run `jekyll help' to find out more."
|
switches. Run `jekyll help' to find out more."
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
Loading…
Reference in New Issue