Don't print deprecation warning if no arg is specified. Fixes #1041.
This commit is contained in:
parent
dde2d7c3f6
commit
a0ad8a4031
|
@ -17,7 +17,7 @@ module Jekyll
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.no_subcommand(args)
|
def self.no_subcommand(args)
|
||||||
if args.size == 0 || (args.first =~ /^--/ && !%w[--help --version].include?(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