diff options
author | Karel Zak | 2011-08-16 12:55:26 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-16 12:55:26 +0200 |
commit | 5c21c6d23e6289dd85d690e51687348cf0e8fc20 (patch) | |
tree | 15b9d8325e4df114f0cbb301eb1dff592debfdae /misc-utils/whereis.c | |
parent | uuidgen: cleanup usage() (diff) | |
download | kernel-qcow2-util-linux-5c21c6d23e6289dd85d690e51687348cf0e8fc20.tar.gz kernel-qcow2-util-linux-5c21c6d23e6289dd85d690e51687348cf0e8fc20.tar.xz kernel-qcow2-util-linux-5c21c6d23e6289dd85d690e51687348cf0e8fc20.zip |
whereis: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/whereis.c')
-rw-r--r-- | misc-utils/whereis.c | 32 |
1 files changed, 17 insertions, 15 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); - - 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); } |