diff options
author | Sami Kerola | 2014-09-28 21:51:41 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-01 12:33:26 +0200 |
commit | db433bf737a5fd4e1c7cca5e3603934743eebd1c (patch) | |
tree | de811b6d372bf7cba52535d2d1de770541499b34 /text-utils/colrm.c | |
parent | textual: use manual tail usage() macro (diff) | |
download | kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.tar.gz kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.tar.xz kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.zip |
textual: use usage() text element macros
Translating these text elements should happen only once, which is
more likely when the text macros are used properly.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/colrm.c')
-rw-r--r-- | text-utils/colrm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/text-utils/colrm.c b/text-utils/colrm.c index f67524a6a..4264fe6b0 100644 --- a/text-utils/colrm.c +++ b/text-utils/colrm.c @@ -59,14 +59,11 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) fprintf(out, _("\nUsage:\n" " %s [startcol [endcol]]\n"), program_invocation_short_name); - - fprintf(out, _("\nOptions:\n" - " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); - + fputs(USAGE_OPTIONS, out); + fputs(USAGE_HELP, out); + fputs(USAGE_VERSION, out); fprintf(out, _("%s reads from standard input and writes to standard output\n\n"), program_invocation_short_name); - fprintf(out, USAGE_MAN_TAIL("colrm(1)")); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } |