aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/options.rb
diff options
context:
space:
mode:
authorMisty De Meo2012-08-13 12:43:33 -0500
committerMisty De Meo2012-08-13 12:45:53 -0500
commit9fb112f55939a6e9496fb920be09619d226cd793 (patch)
tree966b71ac9fb51cce6f81842eef3aa02c477996bd /Library/Homebrew/cmd/options.rb
parent89dae00bb39c80d699c6ffaef381f0c74e4cb14b (diff)
downloadhomebrew-9fb112f55939a6e9496fb920be09619d226cd793.tar.bz2
options: Print "--" in option name for --compact
This was a regression which caused the bash completion script to fail to complete formula options.
Diffstat (limited to 'Library/Homebrew/cmd/options.rb')
-rw-r--r--Library/Homebrew/cmd/options.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb
index 530c88167..482f982cc 100644
--- a/Library/Homebrew/cmd/options.rb
+++ b/Library/Homebrew/cmd/options.rb
@@ -21,7 +21,7 @@ module Homebrew extend self
ff.each do |f|
next if f.build.empty?
if ARGV.include? '--compact'
- puts f.build.collect {|k,v| k} * " "
+ puts f.build.collect {|k,v| "--"+k} * " "
else
puts f.name if ff.length > 1
dump_options_for_formula f