aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-10-16 13:02:04 +0100
committerMike McQuaid2014-10-19 13:58:52 +0100
commit44239378a2d7b7225bda72c221620dea0533ed56 (patch)
tree701e9ec80f4ccc496f36ebc56b595d7dd4ed1190 /Library
parentb805444ed0a4f0e89b81975a69ae1267407c24fc (diff)
downloadhomebrew-44239378a2d7b7225bda72c221620dea0533ed56.tar.bz2
formula_installer: warn on deprecated options.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index c9033ce29..381b44b3a 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -150,6 +150,12 @@ class FormulaInstaller
raise "Unrecognized architecture for --bottle-arch: #{arch}"
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?
@@attempted << f