diff options
author | Benno Schulenberg | 2014-12-24 17:56:07 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-06 11:44:24 +0100 |
commit | 5f55b39e5825c9d86c585742e2cb026eaba5ae7c (patch) | |
tree | efb3736e2b847edf5c2ac92983ce1a86fa1a01a3 /text-utils/colcrt.c | |
parent | textual: list the options of setarch in a more alphabetical order (diff) | |
download | kernel-qcow2-util-linux-5f55b39e5825c9d86c585742e2cb026eaba5ae7c.tar.gz kernel-qcow2-util-linux-5f55b39e5825c9d86c585742e2cb026eaba5ae7c.tar.xz kernel-qcow2-util-linux-5f55b39e5825c9d86c585742e2cb026eaba5ae7c.zip |
colcrt: slice up the usage text for ease of translation
Also use the standard macros for outputting it.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'text-utils/colcrt.c')
-rw-r--r-- | text-utils/colcrt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/text-utils/colcrt.c b/text-utils/colcrt.c index 31ce52af9..567e7b5cf 100644 --- a/text-utils/colcrt.c +++ b/text-utils/colcrt.c @@ -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); } |