summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 11:15:16 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-20 11:15:16 (EDT)
commit3b57da5f33c2aa6fb35c1f2c1531aa977ae634e6 (patch)
treee811e3ea361a9d6485f2767358383c24d270c573
parent021df0a3f3abdaf0b2304b6f74ec27b5cb27db60 (diff)
main: Disable getopt's error output
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 99a3b9d..b83e35f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -153,6 +153,7 @@ main(int argc, char *argv[])
program_name = argv[0];
control_files = NULL;
list_members = 0;
+ opterr = 0;
#ifdef HAVE_GETOPT_LONG
while ((opt = getopt_long(argc, argv, _optstring, _longopts, NULL))
!= -1) {