]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:cmdline: Improve error message for duplicate options
authorAndreas Schneider <asn@samba.org>
Thu, 29 Apr 2021 15:04:43 +0000 (17:04 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 6 May 2021 12:40:28 +0000 (12:40 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/cmdline/cmdline.c

index fd104b196cdc88a8c387334e4c1692b7531e97ca..7c65ed28365610649a3f05936a2e6e4063419b3a 100644 (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 :