diff options
| author | Mike McQuaid | 2014-10-16 13:02:04 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-19 13:58:52 +0100 |
| commit | fdc75115bd3b611ff13f6c371ff84e40df77356a (patch) | |
| tree | 322cc570dea57dd6f8a0e7505c61281cdd9c3bed /Library | |
| parent | 33b344962110794d268ee43c396624e4d2678ea3 (diff) | |
| download | brew-fdc75115bd3b611ff13f6c371ff84e40df77356a.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 |
