From 4af536eca31c000f4f673b24db9ddaed775544c3 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 20 Oct 2020 08:32:44 +0200 Subject: [PATCH] Fix tred -? to actually print usage instead of error on macOS Final commit that fixes https://gitlab.com/graphviz/graphviz/-/issues/1852. --- cmd/tools/tred.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/tred.c b/cmd/tools/tred.c index 4fec5e874..84b3e3086 100644 --- a/cmd/tools/tred.c +++ b/cmd/tools/tred.c @@ -257,7 +257,7 @@ static void init(int argc, char *argv[]) PrintRemovedEdges = 1; break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(0); else { fprintf(stderr, "%s: option -%c unrecognized\n", -- 2.40.0