diff options
| author | Max Howell | 2009-08-02 01:21:01 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-02 01:21:01 +0100 |
| commit | e5fd9be0dc4a1fe5a8f7b5dd99b084d38b7dc968 (patch) | |
| tree | 5258eea876c2ec6abeaa89fdf33971b58bce0c5d /bin | |
| parent | 9b1cc903a2128ba7b49c9dd839e365cbc8dc9e49 (diff) | |
| download | brew-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-x | bin/brew | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
