From c7b707cdfdb2fe6fd99ea639ec7d7bb4544a2761 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 6 May 2013 20:17:28 +0200 Subject: [PATCH] Ignore --help and --version in Deprecator. Fixes #1030 --- lib/jekyll/deprecator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/deprecator.rb b/lib/jekyll/deprecator.rb index ae074f33..13871300 100644 --- a/lib/jekyll/deprecator.rb +++ b/lib/jekyll/deprecator.rb @@ -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)