formula_installer: warn on deprecated options.
This commit is contained in:
parent
33b3449621
commit
fdc75115bd
@ -150,6 +150,12 @@ class FormulaInstaller
|
|||||||
raise "Unrecognized architecture for --bottle-arch: #{arch}"
|
raise "Unrecognized architecture for --bottle-arch: #{arch}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
f.active_spec.deprecated_flags.each do |deprecated_option|
|
||||||
|
old_flag = deprecated_option.old_flag
|
||||||
|
new_flag = deprecated_option.current_flag
|
||||||
|
opoo "#{f.name}: #{old_flag} is deprecated; use #{new_flag} instead!"
|
||||||
|
end
|
||||||
|
|
||||||
oh1 "Installing #{Tty.green}#{f.name}#{Tty.reset}" if show_header?
|
oh1 "Installing #{Tty.green}#{f.name}#{Tty.reset}" if show_header?
|
||||||
|
|
||||||
@@attempted << f
|
@@attempted << f
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user