]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine-id-setup: rearrange --help to match how we do them these days
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Jan 2025 20:58:31 +0000 (21:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Jan 2025 10:31:55 +0000 (11:31 +0100)
src/machine-id-setup/machine-id-setup-main.c

index cfb94841b9831f06edc818d94f724e9b5433adcd..fa4ba6a037d77ef20699a86889fbd8f2834bcf07 100644 (file)
@@ -36,18 +36,21 @@ static int help(void) {
         if (r < 0)
                 return log_oom();
 
-        printf("%s [OPTIONS...]\n"
-               "\n%sInitialize /etc/machine-id from a random source.%s\n\n"
+        printf("%1$s [OPTIONS...]\n"
+               "\n%2$sInitialize /etc/machine-id from a random source.%4$s\n"
+               "\n%3$sCommands:%4$s\n"
+               "     --commit               Commit transient ID\n"
                "  -h --help                 Show this help\n"
                "     --version              Show package version\n"
+               "\n%3$sOptions:%4$s\n"
                "     --root=PATH            Operate on an alternate filesystem root\n"
                "     --image=PATH           Operate on disk image as filesystem root\n"
                "     --image-policy=POLICY  Specify disk image dissection policy\n"
-               "     --commit               Commit transient ID\n"
                "     --print                Print used machine ID\n"
-               "\nSee the %s for details.\n",
+               "\nSee the %5$s for details.\n",
                program_invocation_short_name,
                ansi_highlight(),
+               ansi_underline(),
                ansi_normal(),
                link);