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