]> granicus.if.org Git - graphviz/commitdiff
Fix smyrna -? to actually print usage instead of error
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 20 Sep 2020 20:55:49 +0000 (22:55 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:47:15 +0000 (14:47 +0200)
cmd/smyrna/main.c

index b742c370ee489e0ba4a926736818df6111d5507e..4412f90058e061c01e57732ebef71f5023daeb30 100644 (file)
@@ -134,7 +134,7 @@ static char *parseArgs(int argc, char *argv[], ViewInfo * view)
            exit (0);
            break;
        case '?':
-           if (optopt == '?')
+           if (optopt == '\0')
                usage(0);
            else
                fprintf(stderr,