From 28afd18170ab23f10f6de1f80299d72927bf4662 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 2 Aug 2009 00:04:15 +0100 Subject: [PATCH] FIX missing keg argument error message. Closes #6 --- bin/brew | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index 0d0c9060cd2e..2b5fd700931a 100755 --- a/bin/brew +++ b/bin/brew @@ -3,10 +3,13 @@ $:.unshift __FILE__+'/../../Library/Homebrew' require 'env' require 'find' +PRISTINE_ARGV=ARGV.dup + # often causes Ruby to throw exception ffs Dir.chdir '/' unless File.directory? ENV['PWD'] ######################################################################## funcs +# remove symlinks that no longer point to files def prune n=0 dirs=Array.new @@ -54,7 +57,7 @@ end def extract_kegs require 'keg' kegs=extract_named_args.collect {|name| Keg.new name} - raise "Expecting the name of a keg or formula, eg:\n\tbrew #{ARGV.join ' '} wget" if kegs.empty? + raise "Expecting the name of a keg or formula, eg:\n==> brew #{PRISTINE_ARGV.join ' '} wget" if kegs.empty? return kegs end