[PATCH 07/10] rev: standardize the usage header, making the synopsis equal to another

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
Signed-off-by: Benno Schulenberg <[email protected]>
---
 text-utils/rev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/text-utils/rev.c b/text-utils/rev.c
index fc7ac6203..4c2357a7e 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -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);
-- 
2.48.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.