summaryrefslogtreecommitdiffstats
path: root/text-utils/rev.c
diff options
context:
space:
mode:
authorSami Kerola2014-09-28 21:51:41 +0200
committerKarel Zak2014-10-01 12:33:26 +0200
commitdb433bf737a5fd4e1c7cca5e3603934743eebd1c (patch)
treede811b6d372bf7cba52535d2d1de770541499b34 /text-utils/rev.c
parenttextual: use manual tail usage() macro (diff)
downloadkernel-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/rev.c')
-rw-r--r--text-utils/rev.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/text-utils/rev.c b/text-utils/rev.c
index 60ad7521b..bda31d2d8 100644
--- a/text-utils/rev.c
+++ b/text-utils/rev.c
@@ -76,11 +76,9 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
{
fprintf(out, _("Usage: %s [options] [file ...]\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"));
-
+ fputs(USAGE_OPTIONS, out);
+ fputs(USAGE_HELP, out);
+ fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("rev(1)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);