diff options
Diffstat (limited to 'Library/Homebrew/build_options.rb')
| -rw-r--r-- | Library/Homebrew/build_options.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 6400b36ce..a1069694e 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -6,11 +6,20 @@ class BuildOptions attr_accessor :args include Enumerable + attr_reader :options + protected :options + def initialize args @args = Options.coerce(args) @options = Options.new end + def initialize_copy(other) + super + @options = other.options.dup + @args = other.args.dup + end + def add name, description=nil description ||= case name.to_s when "universal" then "Build a universal binary" |
