diff options
Diffstat (limited to 'Library/Homebrew/options.rb')
| -rw-r--r-- | Library/Homebrew/options.rb | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb index 65be6e1f4..edeb5d870 100644 --- a/Library/Homebrew/options.rb +++ b/Library/Homebrew/options.rb @@ -32,6 +32,23 @@ class Option    end  end +class DeprecatedOption +  attr_reader :old, :current + +  def initialize(old, current) +    @old = old +    @current = current +  end + +  def old_flag +    "--#{old}" +  end + +  def current_flag +    "--#{current}" +  end +end +  class Options    include Enumerable | 
