From bf8c8dc3f8b1f23e5f919f0fe02c018e4a104703 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 12 Jul 2010 09:31:21 -0700 Subject: Formatting in brew-switch --- Library/Contributions/examples/brew-switch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Contributions/examples/brew-switch.rb b/Library/Contributions/examples/brew-switch.rb index bb5d3d47b..3b51f941c 100755 --- a/Library/Contributions/examples/brew-switch.rb +++ b/Library/Contributions/examples/brew-switch.rb @@ -2,7 +2,7 @@ require 'formula' require 'keg' if ARGV.named.length != 2 - onoe "Usage: brew switch formula version" + onoe "Usage: brew switch " exit 1 end @@ -19,7 +19,7 @@ end # Does the target version exist? unless (cellar+version).directory? - onoe "#{name} does not have a version #{version} in the Cellar." + onoe "#{name} does not have a version \"#{version}\" in the Cellar." versions = cellar.children.select { |pn| pn.directory? }.collect { |pn| pn.basename.to_s } puts "Versions available: #{versions.join(', ')}" -- cgit v1.2.3