diff options
| author | Mike McQuaid | 2014-10-16 13:02:04 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-19 13:58:52 +0100 |
| commit | 44239378a2d7b7225bda72c221620dea0533ed56 (patch) | |
| tree | 701e9ec80f4ccc496f36ebc56b595d7dd4ed1190 /Library | |
| parent | b805444ed0a4f0e89b81975a69ae1267407c24fc (diff) | |
| download | homebrew-44239378a2d7b7225bda72c221620dea0533ed56.tar.bz2 | |
formula_installer: warn on deprecated options.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 6 |
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 |
