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