Added catchall for invalid flags
This commit is contained in:
parent
6301afec52
commit
91d06fa18c
@ -302,6 +302,12 @@ while i < ARGV.count
|
||||
exit
|
||||
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
|
||||
i+=1
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user