wall: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2011-08-16 13:53:36 +02:00
parent a1e04e8fe3
commit a290362bb8
1 changed files with 8 additions and 7 deletions

View File

@ -84,14 +84,15 @@ static void usage(FILE *out);
static void __attribute__((__noreturn__)) usage(FILE *out)
{
fprintf(out, _("Usage: %s [options] [file]\n"),
program_invocation_short_name);
fprintf(out, _(
"\nOptions:\n"
" -n, --nobanner do not print banner, works only for root\n"
" -t, --timeout TIMEOUT write timeout in seconds\n"
fputs(_("\nUsage:\n"), out);
fprintf(out,
_(" %s [options] [<file>]\n"),program_invocation_short_name);
fputs(_("\nOptions:\n"), out);
fputs(_(" -n, --nobanner do not print banner, works only for root\n"
" -t, --timeout <timeout> write timeout in seconds\n"
" -V, --version output version information and exit\n"
" -h, --help display this help and exit\n\n"));
" -h, --help display this help and exit\n\n"), out);
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}