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:
parent
fd28e8aeb4
commit
03ef73ac46
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user