Use helper method #deprecation_message in Deprecator.no_subcommand.

This commit is contained in:
Parker Moore 2014-08-05 16:43:38 -04:00
parent 6ca8baa572
commit a27313b1d0
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ module Jekyll
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 \ deprecation_message "Jekyll now uses subcommands instead of just \
switches. Run `jekyll --help' to find out more." switches. Run `jekyll --help' to find out more."
end end
end end