]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
whereis: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 10:55:26 +0000 (12:55 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 10:55:26 +0000 (12:55 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/whereis.c

index 08b62e6d7f8a4c6f44dfbb9b0d2e2f297429ac05..967c292ac99985c439230a3503dda6c8f413823a 100644 (file)
@@ -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 <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"), out);
+
+       fputs(_("See how to use file and dirs arguments from whereis(1) manual.\n"), out);
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }