whereis: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
4469776392
commit
5c21c6d23e
|
@ -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"
|
||||
fputs(_("\nOptions:\n"), out);
|
||||
fputs(_(" -f <file> define search scope\n"
|
||||
" -b search only binaries\n"
|
||||
" -B dirs define binaries lookup path\n"
|
||||
" -B <dirs> define binaries lookup path\n"
|
||||
" -m search only manual paths\n"
|
||||
" -M dirs define man lookup path\n"
|
||||
" -M <dirs> define man lookup path\n"
|
||||
" -s search only sources path\n"
|
||||
" -S dirs define sources lookup 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"));
|
||||
" -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue