From cd80b6262c7e1b95307756f13c89a9f6b2900520 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 10 Mar 2022 19:59:09 -0800 Subject: [PATCH] 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 --- cmd/mingle/minglemain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.40.0