]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
rev: standardize the usage header, making the synopsis equal to another
authorBenno Schulenberg <bensberg@telfort.nl>
Sat, 15 Feb 2025 16:18:40 +0000 (17:18 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2025 10:07:09 +0000 (11:07 +0100)
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
text-utils/rev.c

index fc7ac6203bd3796341e86e3b6307a546a59a1b83..4c2357a7e241b500d413550875522250b3283b83 100644 (file)
@@ -73,8 +73,8 @@ static void sig_handler(int signo __attribute__ ((__unused__)))
 static void __attribute__((__noreturn__)) usage(void)
 {
        FILE *out = stdout;
-       fprintf(out, _("Usage: %s [options] [file ...]\n"),
-               program_invocation_short_name);
+       fputs(USAGE_HEADER, out);
+       fprintf(out, _(" %s [options] [<file> ...]\n"), program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, out);
        fputs(_("Reverse lines characterwise.\n"), out);