From: Lennart Poettering Date: Wed, 15 Jan 2025 20:58:31 +0000 (+0100) Subject: machine-id-setup: rearrange --help to match how we do them these days X-Git-Tag: v258-rc1~1548^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=849552c80bc9943ee25aaeb15cf0c26c4deef192;p=thirdparty%2Fsystemd.git machine-id-setup: rearrange --help to match how we do them these days --- diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index cfb94841b98..fa4ba6a037d 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);