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:
parent
88e79a9098
commit
a3ca4f0872
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user