From e051c530512fec50c9050c54f2f7c2da554b963c Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 19 Mar 2019 10:16:14 -0700 Subject: [PATCH] Fix duplicated error message for unknown option --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 17280a9..7320d01 100644 --- a/main.cpp +++ b/main.cpp @@ -3004,7 +3004,7 @@ int main(int argc, char **argv) { break; default: { - if (i != 'H') { + if (i != 'H' && i != '?') { fprintf(stderr, "Unknown option -%c\n", i); } int width = 7 + strlen(argv[0]);