From db433bf737a5fd4e1c7cca5e3603934743eebd1c Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 28 Sep 2014 20:51:41 +0100 Subject: 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 --- text-utils/rev.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'text-utils/rev.c') 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); -- cgit v1.2.3-55-g7522