From: Karel Zak Date: Tue, 16 Aug 2011 10:55:26 +0000 (+0200) Subject: whereis: cleanup usage() X-Git-Tag: v2.20-rc2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c21c6d23e6289dd85d690e51687348cf0e8fc20;p=thirdparty%2Futil-linux.git whereis: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 08b62e6d7f..967c292ac9 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -129,21 +129,23 @@ static int Scnt, Bcnt, Mcnt, count, print; static void __attribute__ ((__noreturn__)) usage(FILE * out) { - fprintf(out, _("Usage: %s [options] file\n"), - program_invocation_short_name); - - fprintf(out, _("\nOptions:\n" - " -f file define search scope\n" - " -b search only binaries\n" - " -B dirs define binaries lookup path\n" - " -m search only manual paths\n" - " -M dirs define man lookup path\n" - " -s search only sources path\n" - " -S dirs define sources lookup path\n" - " -u search from unusual enties\n" - " -V output version information and exit\n" - " -h display this help and exit\n\n" - "See how to use file and dirs arguments from whereis(1) manual.\n\n")); + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [options] file\n"), program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -f define search scope\n" + " -b search only binaries\n" + " -B define binaries lookup path\n" + " -m search only manual paths\n" + " -M define man lookup path\n" + " -s search only sources path\n" + " -S define sources lookup path\n" + " -u search from unusual enties\n" + " -V output version information and exit\n" + " -h display this help and exit\n\n"), out); + + fputs(_("See how to use file and dirs arguments from whereis(1) manual.\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); }