From 5f52b199a88fa30729ddab53924db4d4da6368c9 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 26 Nov 2025 07:48:04 -0500 Subject: Get rid of double "invalid option" errors in alf. --- src/alf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/alf.c b/src/alf.c index 8fedb20..be47344 100644 --- a/src/alf.c +++ b/src/alf.c @@ -311,6 +311,9 @@ int main(int argc, char **argv) { usage(); } + /* don't let getopt() print error message for us. */ + opterr = 0; + while((opt = getopt(argc, argv, "ao")) != -1) { switch(opt) { case 'a': opt_append = 1; opt_overwrite = 1; break; -- cgit v1.2.3