From: Karel Zak Date: Tue, 16 Aug 2011 10:26:56 +0000 (+0200) Subject: look: cleanup usage() X-Git-Tag: v2.20-rc2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9815fa86f9d8c099b5b1ce92b45a86620cdefe04;p=thirdparty%2Futil-linux.git look: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/misc-utils/look.c b/misc-utils/look.c index b05c22e408..3d9623bfb8 100644 --- a/misc-utils/look.c +++ b/misc-utils/look.c @@ -363,16 +363,17 @@ compare(char *s2, char *s2end) { static void __attribute__ ((__noreturn__)) usage(FILE * out) { - fprintf(out, _("Usage: %s [options] string [file]\n"), - program_invocation_short_name); - - fprintf(out, _("\nOptions:\n" - " -a, --alternative use alternate dictionary\n" - " -d, --alphanum compare only alpha numeric characters\n" - " -f, --ignore-case ignore when comparing\n" - " -t, --terminate=C define string termination character\n" - " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); + fputs(_("\nUsage:\n"), out), + fprintf(out, + _(" %s [options] string [file]\n"), program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -a, --alternative use alternate dictionary\n" + " -d, --alphanum compare only alpha numeric characters\n" + " -f, --ignore-case ignore 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); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }