From: Matthew Fernandez Date: Fri, 11 Mar 2022 03:59:09 +0000 (-0800) Subject: fix: teach mingle '-?' on macOS and Windows X-Git-Tag: 4.0.0~168^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd80b6262c7e1b95307756f13c89a9f6b2900520;p=graphviz fix: teach mingle '-?' on macOS and Windows This is the equivalent of b4925c87f1e28a1bc66d111ef046e4e083db8c5b and friends, but for mingle. It was not previously detected that this problem also affects mingle because it is not currently built on macOS or Windows in CI. This will be improved in future. Gitlab: #1852 --- diff --git a/cmd/mingle/minglemain.cpp b/cmd/mingle/minglemain.cpp index fcdf8f652..345a6c731 100644 --- a/cmd/mingle/minglemain.cpp +++ b/cmd/mingle/minglemain.cpp @@ -207,7 +207,7 @@ static void init(int argc, char *argv[], opts_t* opts) } break; case '?': - if (optopt == '\0') + if (optopt == '\0' || optopt == '?') usage(0); else { std::cerr << cmd << ": option -" << optopt << " unrecognized\n";