From 875a618ed39102f28f605fc36c3b713175bfa0df Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 11 Sep 2025 11:25:13 +0200 Subject: [PATCH] firstboot: modernize --help output --- src/firstboot/firstboot.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index b7b09ba875..f92011b614 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -1208,8 +1208,8 @@ static int help(void) { if (r < 0) return log_oom(); - printf("%s [OPTIONS...]\n\n" - "Configures basic settings of the system.\n\n" + printf("%1$s [OPTIONS...]\n" + "\n%3$sConfigures basic settings of the system.%4$s\n\n" " -h --help Show this help\n" " --version Show package version\n" " --root=PATH Operate on an alternate filesystem root\n" @@ -1247,9 +1247,11 @@ static int help(void) { " --chrome=no Don't show color bar at top and bottom of\n" " terminal\n" " --reset Remove existing files\n" - "\nSee the %s for details.\n", + "\nSee the %2$s for details.\n", program_invocation_short_name, - link); + link, + ansi_highlight(), + ansi_normal()); return 0; }