Skip to content

Commit

Permalink
Highlight warning message for deprecated options
Browse files Browse the repository at this point in the history
Follow up rubocop#10547.
  • Loading branch information
koic committed Jun 1, 2022
1 parent c40b99e commit 5bec7c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def add_general_options(opts)
end

def handle_deprecated_option(old_option, new_option)
warn "#{old_option} is deprecated; use #{new_option}"
warn rainbow.wrap("#{old_option} is deprecated; use #{new_option} instead.").yellow
@options[long_opt_symbol([new_option])] = @options.delete(long_opt_symbol([old_option]))
end

Expand Down

0 comments on commit 5bec7c7

Please sign in to comment.