Raise if ARGV.next is out of bounds
This commit is contained in:
parent
78d7cbc812
commit
8f46b32d26
@ -55,7 +55,7 @@ module HomebrewArgvExtension
|
||||
@n=index arg
|
||||
end
|
||||
def next
|
||||
at @n+1
|
||||
at @n+1 or raise UsageError
|
||||
end
|
||||
|
||||
def force?
|
||||
|
Loading…
x
Reference in New Issue
Block a user