From: Matthew Fernandez Date: Sat, 26 Mar 2022 15:13:30 +0000 (-0700) Subject: fix: teach Smyrna '-?' on macOS and Windows X-Git-Tag: 4.0.0~156^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a852fb5faeebb96e44ede99c0836cc3120d85ae;p=graphviz 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 --- 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,