Added catchall for invalid flags

This commit is contained in:
Tristan Ancelet 2024-05-26 12:33:33 -05:00
parent 6301afec52
commit 91d06fa18c

View File

@ -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