From 527c5daea4db952d4006e7b321f86dac40af0e2b Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 20 Oct 2020 08:08:51 +0200 Subject: [PATCH] Fix bcomps -? to actually print usage instead of error on macOS Towards https://gitlab.com/graphviz/graphviz/-/issues/1852. --- cmd/tools/bcomps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/bcomps.c b/cmd/tools/bcomps.c index a48b73adc..141b354af 100644 --- a/cmd/tools/bcomps.c +++ b/cmd/tools/bcomps.c @@ -358,7 +358,7 @@ static void init(int argc, char *argv[]) fprintf(stderr, "bcomps: option -%c missing argument - ignored\n", optopt); break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(0); else { fprintf(stderr, -- 2.40.0