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@xxxxxxxxxxxxx> --- misc-utils/look.c | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/misc-utils/look.c b/misc-utils/look.c index 51938f2..d6a8e26 100644 --- a/misc-utils/look.c +++ b/misc-utils/look.c @@ -364,16 +364,18 @@ 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); - 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); + fprintf(out, _(" %s [options] <string> [<file>...]\n"), program_invocation_short_name); + fputs(USAGE_OPTIONS, 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); } -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html