options: Print "--" in option name for --compact

This was a regression which caused the bash completion script to
fail to complete formula options.
This commit is contained in:
Misty De Meo 2012-08-13 12:43:33 -05:00
parent 88e79a9098
commit a3ca4f0872

View File

@ -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