Skip to content

Commit

Permalink
FIX missing keg argument error message. Closes Homebrew#6
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Aug 1, 2009
1 parent aa5a2e0 commit 28afd18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/brew
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 28afd18

Please sign in to comment.