]> granicus.if.org Git - graphviz/commitdiff
fix: teach Smyrna '-?' on macOS and Windows
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 15:13:30 +0000 (08:13 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:21:10 +0000 (11:21 -0700)
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

index 2df832dcf27eae91a4aa78d72e54a3eae932ace6..7f531fe82d2ead54f53a9c5c04fa35d31cedb7b0 100644 (file)
@@ -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,