formula_installer: warn on deprecated options.

This commit is contained in:
Mike McQuaid 2014-10-16 13:02:04 +01:00
parent 33b3449621
commit fdc75115bd

View File

@ -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