From aa695fabf4ff342488229aabd43c0970470d711f Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 20 Oct 2020 08:11:33 +0200 Subject: [PATCH] Fix ccomps -? to actually print usage instead of error on macOS Towards https://gitlab.com/graphviz/graphviz/-/issues/1852 --- cmd/tools/ccomps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.40.0