]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
colcrt: slice up the usage text for ease of translation
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 24 Dec 2014 16:56:07 +0000 (17:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Jan 2015 10:44:24 +0000 (11:44 +0100)
Also use the standard macros for outputting it.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
text-utils/colcrt.c

index 31ce52af973c3730e1808aa6508e5fe92f408143..567e7b5cf585f998347357de5e82e8aad575b038 100644 (file)
@@ -309,20 +309,20 @@ void move(int l, int m)
 
 static void __attribute__ ((__noreturn__)) usage(FILE * out)
 {
-       fprintf(out,
-               _("\nUsage:\n"
-                 " %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(_("Filter nroff output for CRT previewing.\n"), out);
 
        fputs(USAGE_OPTIONS, out);
-       fprintf(out,
-               _(" -,  --no-underlining  suppress all underlining\n"
-                 " -2, --half-lines      print all half-lines\n"
-                 " -V, --version         output version information and exit\n"
-                 " -h, --help            display this help and exit\n\n"));
+       fputs(_(" -,  --no-underlining    suppress all underlining\n"), out);
+       fputs(_(" -2, --half-lines        print all half-lines\n"), out);
 
+       fputs(USAGE_SEPARATOR, out);
+       fputs(USAGE_HELP, out);
+       fputs(USAGE_VERSION, out);
        fprintf(out, USAGE_MAN_TAIL("colcrt(1)"));
+
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }