1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib:cmdline: Improve error message for duplicate options

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Andreas Schneider 2021-04-29 17:04:43 +02:00 committed by Andreas Schneider
parent fd28e8aeb4
commit 03ef73ac46

View File

@ -238,7 +238,8 @@ static bool opt_sanity_check(const struct poptOption *current_opts,
find_duplicates(o, full_opts, &count);
if (count > 1) {
DBG_ERR("Duplicate %s (%c) detected!\n",
DBG_ERR("Duplicate option '--%s|-%c' "
"detected!\n",
o->longName,
o->shortName != 0 ?
o->shortName :