]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
look: slice up the usage text for ease of translation
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 24 Dec 2014 16:56:08 +0000 (17:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Jan 2015 10:46:11 +0000 (11:46 +0100)
Also use the standard macros, and correct the synopsis: use angular
brackets and show that look accepts multiple files.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
misc-utils/look.c

index 50bc4f47d1752675c6da4757ff8d78d32ecf03e6..dc6a8d0fc8db615effe2127fa8643601cbf268b9 100644 (file)
@@ -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] <string> [<file>...]\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 <char> 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 <char>   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);
 }