From: Benno Schulenberg Date: Wed, 24 Dec 2014 16:56:08 +0000 (+0100) Subject: look: slice up the usage text for ease of translation X-Git-Tag: v2.26-rc1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfe6a6d0857f56ff96b6eef3e41136026e71d3aa;p=thirdparty%2Futil-linux.git look: slice up the usage text for ease of translation Also use the standard macros, and correct the synopsis: use angular brackets and show that look accepts multiple files. Signed-off-by: Benno Schulenberg --- diff --git a/misc-utils/look.c b/misc-utils/look.c index 50bc4f47d1..dc6a8d0fc8 100644 --- a/misc-utils/look.c +++ b/misc-utils/look.c @@ -364,20 +364,21 @@ compare(char *s2, char *s2end) { static void __attribute__ ((__noreturn__)) usage(FILE * out) { fputs(USAGE_HEADER, out); - fprintf(out, - _(" %s [options] string [file]\n"), program_invocation_short_name); + fprintf(out, _(" %s [options] [...]\n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out); fputs(_("Display lines beginning with a specified string.\n"), out); fputs(USAGE_OPTIONS, out); - fputs(_(" -a, --alternative use alternative dictionary\n" - " -d, --alphanum compare only alphanumeric characters\n" - " -f, --ignore-case ignore case differences when comparing\n" - " -t, --terminate define string termination character\n" - " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n"), out); + fputs(_(" -a, --alternative use the alternative dictionary\n"), out); + fputs(_(" -d, --alphanum compare only alphanumeric characters\n"), out); + fputs(_(" -f, --ignore-case ignore case differences when comparing\n"), out); + fputs(_(" -t, --terminate define the string-termination character\n"), out); + fputs(USAGE_SEPARATOR, out); + fputs(USAGE_HELP, out); + fputs(USAGE_VERSION, out); fprintf(out, USAGE_MAN_TAIL("look(1)")); + exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }