From b79b8e722028ee8b28990a998ff3ecae4a5252c5 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 20 Oct 2020 08:28:21 +0200 Subject: [PATCH] Fix edgepaint -? to actually print usage instead of error on macOS Towards https://gitlab.com/graphviz/graphviz/-/issues/1852. --- cmd/edgepaint/edgepaintmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/edgepaint/edgepaintmain.c b/cmd/edgepaint/edgepaintmain.c index 18ab2ec58..3473faab4 100644 --- a/cmd/edgepaint/edgepaintmain.c +++ b/cmd/edgepaint/edgepaintmain.c @@ -180,7 +180,7 @@ static void init(int argc, char *argv[], real *angle, real *accuracy, char **inf outfile = openFile(optarg, "w", CmdName); break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(cmd, 0); else { fprintf(stderr, "option -%c unrecognized\n", -- 2.40.0