From: Zbigniew Jędrzejewski-Szmek Date: Fri, 15 May 2026 15:51:41 +0000 (+0200) Subject: shared/options: fix display of OPTION_HELP_ENTRY_VERBATIM X-Git-Tag: v261-rc1~152^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b87471ad3f6f1b3faf6bebc26dced9df242a97;p=thirdparty%2Fsystemd.git shared/options: fix display of OPTION_HELP_ENTRY_VERBATIM So far it was used only once, in bootctl. It should not be indented: -R --print-root-device -RR ^ --- diff --git a/src/shared/options.c b/src/shared/options.c index ac36fe07653..1a24106fc54 100644 --- a/src/shared/options.c +++ b/src/shared/options.c @@ -510,7 +510,8 @@ int _option_parser_get_help_table_full( /* We indent the option string by two spaces. We could set the minimum cell width and * right-align for a similar result, but that'd be more work. This is only used for * display. */ - const char *prefix = opt->short_code != 0 ? " " : " "; + bool shift_left = opt->short_code != 0 || FLAGS_SET(opt->flags, OPTION_HELP_ENTRY_VERBATIM); + const char *prefix = shift_left ? " " : " "; _cleanup_free_ char *t = strjoin(prefix, s); if (!t) return log_oom();