Bugfix
* libmailutils/opt/opt.c (find_long_option): Don't mark ambiguity if the matching option unaliases to the same option as the found one.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -207,6 +207,8 @@ find_long_option (struct mu_parseopt *po, char const *optstr, | ... | @@ -207,6 +207,8 @@ find_long_option (struct mu_parseopt *po, char const *optstr, |
207 | break; | 207 | break; |
208 | 208 | ||
209 | case 1: | 209 | case 1: |
210 | if (option_unalias (po, i) == option_unalias (po, ind)) | ||
211 | continue; | ||
210 | if (po->po_flags & MU_PARSEOPT_IGNORE_ERRORS) | 212 | if (po->po_flags & MU_PARSEOPT_IGNORE_ERRORS) |
211 | return NULL; | 213 | return NULL; |
212 | mu_parseopt_error (po, | 214 | mu_parseopt_error (po, | ... | ... |
-
Please register or sign in to post a comment