From 91d06fa18cf92fe7ce3d5b2bab825804539c14c9 Mon Sep 17 00:00:00 2001 From: Tristan Ancelet Date: Sun, 26 May 2024 12:33:33 -0500 Subject: [PATCH] Added catchall for invalid flags --- bucket-tool | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bucket-tool b/bucket-tool index 4c5f8d7..a5aaff6 100755 --- a/bucket-tool +++ b/bucket-tool @@ -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