Commit 260b113a 260b113a1e75989b4e460712f16af10d93fe19e8 by Sergey Poznyakoff

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.
1 parent bc73fc65
......@@ -207,6 +207,8 @@ find_long_option (struct mu_parseopt *po, char const *optstr,
break;
case 1:
if (option_unalias (po, i) == option_unalias (po, ind))
continue;
if (po->po_flags & MU_PARSEOPT_IGNORE_ERRORS)
return NULL;
mu_parseopt_error (po,
......