Raise if ARGV.next is out of bounds

This commit is contained in:
Max Howell 2009-10-26 18:20:47 +00:00
parent 78d7cbc812
commit 8f46b32d26

View File

@ -55,7 +55,7 @@ module HomebrewArgvExtension
@n=index arg
end
def next
at @n+1
at @n+1 or raise UsageError
end
def force?