From 0a852fb5faeebb96e44ede99c0836cc3120d85ae Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 26 Mar 2022 08:13:30 -0700 Subject: [PATCH] fix: teach Smyrna '-?' on macOS and Windows This is the equivalent of cd80b6262c7e1b95307756f13c89a9f6b2900520 and friends but for Smyrna. It was not previously detected that this problem also affects Smyrna because it is not currently built on macOS or Windows in CI. This will be improved in future. Gitlab: #1852 --- cmd/smyrna/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/smyrna/main.c b/cmd/smyrna/main.c index 2df832dcf..7f531fe82 100644 --- a/cmd/smyrna/main.c +++ b/cmd/smyrna/main.c @@ -112,7 +112,7 @@ static char *parseArgs(int argc, char *argv[], ViewInfo * view) graphviz_exit(0); break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(0); else { fprintf(stderr, -- 2.50.1