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
|
@n=index arg
|
||||||
end
|
end
|
||||||
def next
|
def next
|
||||||
at @n+1
|
at @n+1 or raise UsageError
|
||||||
end
|
end
|
||||||
|
|
||||||
def force?
|
def force?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user