From a3ca4f087260d0b53db59407957949830222b743 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 13 Aug 2012 12:43:33 -0500 Subject: [PATCH] options: Print "--" in option name for --compact This was a regression which caused the bash completion script to fail to complete formula options. --- Library/Homebrew/cmd/options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/options.rb b/Library/Homebrew/cmd/options.rb index 530c881677..482f982ccb 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