From: Magnus Jacobsson Date: Tue, 20 Oct 2020 06:29:03 +0000 (+0200) Subject: Fix cluster -? to actually print usage instead of error on macOS X-Git-Tag: 2.46.0~20^2^2~15^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e3642b1824af1f8e5bb4a335601ff69b5f034b3;p=graphviz Fix cluster -? to actually print usage instead of error on macOS Towards https://gitlab.com/graphviz/graphviz/-/issues/1852. --- diff --git a/cmd/gvmap/cluster.c b/cmd/gvmap/cluster.c index e5232bac9..a7fcdf7c9 100644 --- a/cmd/gvmap/cluster.c +++ b/cmd/gvmap/cluster.c @@ -120,7 +120,7 @@ static void init(int argc, char *argv[], opts_t* opts) { Verbose = 1; break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(cmd, 0); else { fprintf(stderr, " option -%c unrecognized\n",