From 849552c80bc9943ee25aaeb15cf0c26c4deef192 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 15 Jan 2025 21:58:31 +0100 Subject: [PATCH] machine-id-setup: rearrange --help to match how we do them these days --- src/machine-id-setup/machine-id-setup-main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index cfb94841b9..fa4ba6a037 100644 --- a/src/machine-id-setup/machine-id-setup-main.c +++ b/src/machine-id-setup/machine-id-setup-main.c @@ -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);