From 82b87471ad3f6f1b3faf6bebc26dced9df242a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 15 May 2026 17:51:41 +0200 Subject: [PATCH] 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 ^ --- src/shared/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/options.c b/src/shared/options.c index ac36fe0765..1a24106fc5 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();