From: Magnus Jacobsson Date: Sat, 3 Oct 2020 14:16:01 +0000 (+0200) Subject: Explicitly specify -? as an option in sccmap X-Git-Tag: 2.46.0~20^2^2~47^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a923ca73e1abc2c897a4b7ced9ebbd7b6856e1c;p=graphviz Explicitly specify -? as an option in sccmap --- diff --git a/doc/libgraph/sccmap.c b/doc/libgraph/sccmap.c index 0c37efc2e..8cd895726 100644 --- a/doc/libgraph/sccmap.c +++ b/doc/libgraph/sccmap.c @@ -292,7 +292,7 @@ static void scanArgs(int argc, char **argv) CmdName = argv[0]; opterr = 0; - while ((c = getopt(argc, argv, ":o:sdvS")) != EOF) { + while ((c = getopt(argc, argv, ":o:sdvS?")) != EOF) { switch (c) { case 's': StatsOnly = 1; @@ -311,7 +311,7 @@ static void scanArgs(int argc, char **argv) Silent = 1; break; case '?': - if (optopt == '?') + if (optopt == '\0') usage(0); else { fprintf(stderr, "%s: option -%c unrecognized\n",