From 142fc3a7b382519db6857424e208ba7cbc9681ef Mon Sep 17 00:00:00 2001
From: "C. McEnroe" <june@causal.agency>
Date: Sat, 13 Mar 2021 15:10:47 -0500
Subject: Exit on getopt failure

Oops, missed this!
---
 archive.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/archive.c b/archive.c
index 91c6118..f55146f 100644
--- a/archive.c
+++ b/archive.c
@@ -118,6 +118,7 @@ int main(int argc, char *argv[]) {
 			break; case 'v': imapVerbose = true;
 			break; case 'w': passPath = optarg;
 			break; case 'y': baseStylesheet = optarg;
+			break; default:  return EX_USAGE;
 		}
 	}
 	if (optind < argc) user = argv[optind++];
-- 
cgit 1.4.1