From: Benno Schulenberg Date: Wed, 24 Dec 2014 16:56:09 +0000 (+0100) Subject: tailf: slice up the usage text for ease of translation X-Git-Tag: v2.26-rc1~83 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=331d25526132505117b1c9259c0054e0f497bd9b;p=thirdparty%2Futil-linux.git tailf: slice up the usage text for ease of translation Signed-off-by: Benno Schulenberg --- diff --git a/text-utils/tailf.c b/text-utils/tailf.c index cf22a1e5f1..6adb05037a 100644 --- a/text-utils/tailf.c +++ b/text-utils/tailf.c @@ -193,22 +193,21 @@ watch_file_inotify(const char *filename, off_t *size) static void __attribute__ ((__noreturn__)) usage(FILE *out) { - fprintf(out, - _("\nUsage:\n" - " %s [option] file\n"), - program_invocation_short_name); + fputs(USAGE_HEADER, out); + fprintf(out, _(" %s [option] \n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out); fputs(_("Follow the growth of a log file.\n"), out); - fprintf(out, _( - "\nOptions:\n" - " -n, --lines NUMBER output the last NUMBER lines\n" - " -NUMBER same as `-n NUMBER'\n" - " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); + fputs(USAGE_OPTIONS, out); + fputs(_(" -n, --lines output the last lines\n"), out); + fputs(_(" - same as '-n '\n"), out); + fputs(USAGE_SEPARATOR, out); + fputs(USAGE_HELP, out); + fputs(USAGE_VERSION, out); fprintf(out, USAGE_MAN_TAIL("tailf(1)")); + exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }