From 5c21c6d23e6289dd85d690e51687348cf0e8fc20 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 12:55:26 +0200 Subject: [PATCH] whereis: cleanup usage() Signed-off-by: Karel Zak --- misc-utils/whereis.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 08b62e6d7..967c292ac 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); + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %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(_("\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); }