From: Lennart Poettering Date: Thu, 11 Sep 2025 09:25:13 +0000 (+0200) Subject: firstboot: modernize --help output X-Git-Tag: v259-rc1~451^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=875a618ed39102f28f605fc36c3b713175bfa0df;p=thirdparty%2Fsystemd.git firstboot: modernize --help output --- diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index b7b09ba8752..f92011b614e 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; }