Added catchall for invalid flags
This commit is contained in:
parent
6301afec52
commit
91d06fa18c
@ -302,6 +302,12 @@ while i < ARGV.count
|
|||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
when FLAG_REGEX
|
||||||
|
# Catch all to prevent user from specifying a non-accounted for flag
|
||||||
|
puts "#{ARGV[i]} is not a valid flag."
|
||||||
|
usage
|
||||||
|
exit
|
||||||
|
|
||||||
else
|
else
|
||||||
i+=1
|
i+=1
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user