Skip to content

Commit

Permalink
Fix error message that should have been updated long ago.
Browse files Browse the repository at this point in the history
Error message uses old syntax "--" which was changed to "-!"
in 0275fcc in 1999, which
repurposed "--" to refer to a long option name.
Related to #574.
  • Loading branch information
gwsw committed Oct 15, 2024
1 parent 99d7d2d commit 9c7105e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion option.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9c7105e

Please sign in to comment.