From: Magnus Jacobsson Date: Tue, 20 Oct 2020 06:11:33 +0000 (+0200) Subject: Fix ccomps -? to actually print usage instead of error on macOS X-Git-Tag: 2.46.0~20^2^2~15^2~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa695fabf4ff342488229aabd43c0970470d711f;p=graphviz Fix ccomps -? to actually print usage instead of error on macOS Towards https://gitlab.com/graphviz/graphviz/-/issues/1852 --- diff --git a/cmd/tools/ccomps.c b/cmd/tools/ccomps.c index 68f638997..270df8d39 100644 --- a/cmd/tools/ccomps.c +++ b/cmd/tools/ccomps.c @@ -205,7 +205,7 @@ static void init(int argc, char *argv[]) "ccomps: option -%c missing argument - ignored\n", optopt); break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(0); else { fprintf(stderr,