From cce46228bde5b7dfa6d3b9048865f43dfbbeda30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A9=8D=E4=B8=B9=E5=B0=BC=20Dan=20Jacobson?= Date: Fri, 19 Jul 2024 16:26:06 +0800 Subject: [PATCH] optargpm.h: improve error message regarding mix of options starting with plus and minux (#4201) Fixes #4199 --- src/apps/optargpm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/optargpm.h b/src/apps/optargpm.h index c07f1020f5..8d0f1ea536 100644 --- a/src/apps/optargpm.h +++ b/src/apps/optargpm.h @@ -657,7 +657,7 @@ OPTARGS *opt_parse(int argc, char **argv, const char *flags, const char *keys, for (/* empty */; i < argc; i++) { if ('-' == argv[i][0]) { free(o); - fprintf(stderr, "+ and - style options must not be mixed\n"); + fprintf(stderr, "Minus options must come first, then the plus options\n"); return nullptr; }