aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-08-02 01:21:01 +0100
committerMax Howell2009-08-02 01:21:01 +0100
commite5fd9be0dc4a1fe5a8f7b5dd99b084d38b7dc968 (patch)
tree5258eea876c2ec6abeaa89fdf33971b58bce0c5d /bin
parent9b1cc903a2128ba7b49c9dd839e365cbc8dc9e49 (diff)
downloadbrew-e5fd9be0dc4a1fe5a8f7b5dd99b084d38b7dc968.tar.bz2
Raise if extract_named_args finds no named args
This errors out correctly for all existing and future usage.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 2b5fd7009..728af01a3 100755
--- a/bin/brew
+++ b/bin/brew
@@ -51,13 +51,13 @@ def extract_named_args
true
end
end
+ raise "Expecting the name of a keg or formula, eg:\n==> brew #{PRISTINE_ARGV.join ' '} wget" if args.empty?
return args
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==> brew #{PRISTINE_ARGV.join ' '} wget" if kegs.empty?
return kegs
end