]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
firstboot: modernize --help output
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Sep 2025 09:25:13 +0000 (11:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Sep 2025 13:46:30 +0000 (15:46 +0200)
src/firstboot/firstboot.c

index b7b09ba8752b934641f94eefd4cb851ae3399146..f92011b614e976e36061d0836a32393917ed7c0c 100644 (file)
@@ -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;
 }