From 03ef73ac46cf0da8b8afb77883f8652acf7c58bf Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 29 Apr 2021 17:04:43 +0200 Subject: [PATCH] lib:cmdline: Improve error message for duplicate options Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet Reviewed-by: Volker Lendecke --- lib/cmdline/cmdline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cmdline/cmdline.c b/lib/cmdline/cmdline.c index fd104b196cd..7c65ed28365 100644 --- a/lib/cmdline/cmdline.c +++ b/lib/cmdline/cmdline.c @@ -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 : -- 2.47.3