Formatting in brew-switch

This commit is contained in:
Adam Vandenberg 2010-07-12 09:31:21 -07:00
parent fb70374dac
commit bf8c8dc3f8

View File

@ -2,7 +2,7 @@ require 'formula'
require 'keg'
if ARGV.named.length != 2
onoe "Usage: brew switch formula version"
onoe "Usage: brew switch <formula> <version>"
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(', ')}"