diff options
author | Karel Zak | 2011-08-16 12:26:56 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-16 12:26:56 +0200 |
commit | 9815fa86f9d8c099b5b1ce92b45a86620cdefe04 (patch) | |
tree | 23476beabc5125e8621fb0f1bc5a00d398f69341 /misc-utils/look.c | |
parent | logger: indent usage() (diff) | |
download | kernel-qcow2-util-linux-9815fa86f9d8c099b5b1ce92b45a86620cdefe04.tar.gz kernel-qcow2-util-linux-9815fa86f9d8c099b5b1ce92b45a86620cdefe04.tar.xz kernel-qcow2-util-linux-9815fa86f9d8c099b5b1ce92b45a86620cdefe04.zip |
look: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/look.c')
-rw-r--r-- | misc-utils/look.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/misc-utils/look.c b/misc-utils/look.c index b05c22e40..3d9623bfb 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 <char> 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); } |