From: Zbigniew Jędrzejewski-Szmek Date: Thu, 7 May 2026 11:38:04 +0000 (+0200) Subject: shared/verbs: when showing default verb, put [] around the args too X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e20d61c65c232a25dd30ce0aad4235dec3f634c;p=thirdparty%2Fsystemd.git shared/verbs: when showing default verb, put [] around the args too The verb cannot be omitted but the args kept, so: resolvectl [status] [link] is wrong, we need: resolvectl [status [link]] Fixes f94da4b4c564f8cff4b5b739456c985e036a4201. --- diff --git a/src/shared/verbs.c b/src/shared/verbs.c index 276c6fd5be9..274945e5c59 100644 --- a/src/shared/verbs.c +++ b/src/shared/verbs.c @@ -200,9 +200,9 @@ int _verbs_get_help_table( r = table_add_cell_stringf(table, NULL, " %s%s%s%s%s", is_default ? "[" : "", verb->verb, - is_default ? "]" : "", verb->argspec ? " " : "", - strempty(verb->argspec)); + strempty(verb->argspec), + is_default ? "]" : ""); if (r < 0) return table_log_add_error(r);