aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-26 18:20:47 +0000
committerMax Howell2009-11-07 18:22:33 +0000
commit85704f0a5560d75b0cb181ec3930abebc9938007 (patch)
tree83d1b2808c5ac5ec7d62a2ab6024cf41d1c805b7 /Library
parentec8c3b9a3557535582d04ee8f3c12829a65abbf6 (diff)
downloadhomebrew-85704f0a5560d75b0cb181ec3930abebc9938007.tar.bz2
Raise if ARGV.next is out of bounds
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ARGV.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 75beeaa9f..70b50beb0 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -55,7 +55,7 @@ module HomebrewArgvExtension
@n=index arg
end
def next
- at @n+1
+ at @n+1 or raise UsageError
end
def force?