aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-11-09 15:18:01 -0600
committerJack Nagel2012-11-09 15:18:01 -0600
commit6d8ff451d1aec86a360c88e9597da7f30855041b (patch)
treef15c3f26311177cd1551fae2eafc0dc5eb73883b /Library
parentba7590369fa367ca1684949694cf593b70e2430e (diff)
downloadhomebrew-6d8ff451d1aec86a360c88e9597da7f30855041b.tar.bz2
debrew: take input from same line as prompt
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/debrew.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/debrew.rb b/Library/Homebrew/debrew.rb
index 93fabfc52..eff396909 100644
--- a/Library/Homebrew/debrew.rb
+++ b/Library/Homebrew/debrew.rb
@@ -26,7 +26,7 @@ def choose
menu.entries.each_with_index do |entry, i|
puts "#{i+1}. #{entry[:name]}"
end
- puts menu.prompt unless menu.prompt.nil?
+ print menu.prompt unless menu.prompt.nil?
reply = $stdin.gets.chomp
i = reply.to_i
@@ -102,7 +102,7 @@ def debrew(exception, formula=nil)
begin
again = false
choose do |menu|
- menu.prompt = "Choose an action:"
+ menu.prompt = "Choose an action: "
menu.choice(:raise) { original_raise exception }
menu.choice(:ignore) { exception.restart }
menu.choice(:backtrace) { puts exception.backtrace; again = true }