FIX missing keg argument error message. Closes Homebrew/homebrew#6
This commit is contained in:
parent
a5ca752658
commit
9b1cc903a2
5
bin/brew
5
bin/brew
@ -3,10 +3,13 @@ $:.unshift __FILE__+'/../../Library/Homebrew'
|
|||||||
require 'env'
|
require 'env'
|
||||||
require 'find'
|
require 'find'
|
||||||
|
|
||||||
|
PRISTINE_ARGV=ARGV.dup
|
||||||
|
|
||||||
# often causes Ruby to throw exception ffs
|
# often causes Ruby to throw exception ffs
|
||||||
Dir.chdir '/' unless File.directory? ENV['PWD']
|
Dir.chdir '/' unless File.directory? ENV['PWD']
|
||||||
|
|
||||||
######################################################################## funcs
|
######################################################################## funcs
|
||||||
|
# remove symlinks that no longer point to files
|
||||||
def prune
|
def prune
|
||||||
n=0
|
n=0
|
||||||
dirs=Array.new
|
dirs=Array.new
|
||||||
@ -54,7 +57,7 @@ end
|
|||||||
def extract_kegs
|
def extract_kegs
|
||||||
require 'keg'
|
require 'keg'
|
||||||
kegs=extract_named_args.collect {|name| Keg.new name}
|
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
|
return kegs
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user