Ignore --help and --version in Deprecator. Fixes #1030

This commit is contained in:
Parker Moore 2013-05-06 20:17:28 +02:00
parent 60bbcaa863
commit c7b707cdfd
1 changed files with 1 additions and 1 deletions

View File

@ -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)