Use helper method #deprecation_message in Deprecator.no_subcommand.
This commit is contained in:
parent
6ca8baa572
commit
a27313b1d0
|
@ -18,7 +18,7 @@ module Jekyll
|
|||
|
||||
def self.no_subcommand(args)
|
||||
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."
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue