From 9c7105e01f9de65f66fba73d11db12860e533d6c Mon Sep 17 00:00:00 2001 From: Mark Nudelman Date: Mon, 14 Oct 2024 18:40:24 -0700 Subject: [PATCH] Fix error message that should have been updated long ago. Error message uses old syntax "--" which was changed to "-!" in 0275fcce0809a1a795d523d862b2642b1e9e1bf6 in 1999, which repurposed "--" to refer to a long option name. Related to #574. --- option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/option.c b/option.c index 2fe68537..7d03736b 100644 --- a/option.c +++ b/option.c @@ -420,7 +420,7 @@ public void toggle_option(struct loption *o, lbool lower, constant char *s, int { case OPT_SET: case OPT_UNSET: - error("Cannot use \"-+\" or \"--\" for a string option", + error("Cannot use \"-+\" or \"-!\" for a string option", NULL_PARG); return; }