diff options
| author | Misty De Meo | 2012-08-11 16:51:05 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-08-11 16:54:03 -0500 |
| commit | d1c0d4c8793d6ea80f1e9dd3759aa22eb506211a (patch) | |
| tree | e39fe9992e4441d305f2a263d18deeedf67ddcd5 /Library/Homebrew/cmd | |
| parent | 5882ae901f6ec7998d2961052bdb30f29696f987 (diff) | |
| download | brew-d1c0d4c8793d6ea80f1e9dd3759aa22eb506211a.tar.bz2 | |
Fix normalization of old- and new-style options
When combining the set of old-style and new-style options, make sure
that the leading "--" is stripped.
Fixes displaying options in `brew options`, and the exotic case of
declaring options using the old syntax and then checking them with
`build.include?`
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/options.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 040c4a74b..530c88167 100644 --- a/Library/Homebrew/cmd/options.rb +++ b/Library/Homebrew/cmd/options.rb @@ -32,8 +32,7 @@ module Homebrew extend self def dump_options_for_formula f f.build.each do |k,v| - k.prepend "--" unless k.start_with? "--" - puts k + puts "--"+k puts "\t"+v end end |
