Skip to content

Commit

Permalink
optargpm.h: improve error message regarding mix of options starting w…
Browse files Browse the repository at this point in the history
…ith plus and minux (#4201)

Fixes #4199
  • Loading branch information
jidanni authored Jul 19, 2024
1 parent 4bee401 commit cce4622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/optargpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cce4622

Please sign in to comment.