Sync program's usage() with manpage's SYNOPSIS.

This commit is contained in:
Ruslan Ermilov 2005-02-09 20:36:12 +00:00
parent c13a4b3505
commit ee3b44f521
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141589
5 changed files with 7 additions and 12 deletions

View File

@ -73,7 +73,7 @@ static int
usage(const char *prog) usage(const char *prog)
{ {
fprintf(stderr, "usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]" fprintf(stderr, "usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]"
" [-p provider] interface\n", prog); " [-n ngdebug] [-p provider] interface\n", prog);
return EX_USAGE; return EX_USAGE;
} }

View File

@ -38,10 +38,7 @@
.Nd "generate reverse netgroup data" .Nd "generate reverse netgroup data"
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Fl u .Fl u | h
.Op Fl f Ar netgroup_file
.Nm
.Fl h
.Op Fl f Ar netgroup_file .Op Fl f Ar netgroup_file
.Sh DESCRIPTION .Sh DESCRIPTION
The The

View File

@ -63,7 +63,7 @@ struct member_entry *mtable[TABLESIZE];
static void static void
usage(void) usage(void)
{ {
fprintf (stderr,"usage: revnetgroup -u|-h [-f netgroup file]\n"); fprintf (stderr,"usage: revnetgroup -u | -h [-f netgroup_file]\n");
exit(1); exit(1);
} }

View File

@ -40,7 +40,7 @@
.Nd remote shell server .Nd remote shell server
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl \&?DLaln .Op Fl aDLln
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm .Nm
@ -147,8 +147,8 @@ by
.Pp .Pp
The options are as follows: The options are as follows:
.Bl -tag -width indent .Bl -tag -width indent
.It Fl \&? .It Fl a
Display the usage message, and exit. This flag is ignored, and is present for compatability purposes.
.It Fl D .It Fl D
Sets the TCP_NODELAY socket option, which improves the performance Sets the TCP_NODELAY socket option, which improves the performance
of small back-to-back writes at the expense of additional network of small back-to-back writes at the expense of additional network
@ -159,8 +159,6 @@ Causes all successful accesses to be logged to
as as
.Li auth.info .Li auth.info
messages. messages.
.It Fl a
This flag is ignored, and is present for compatability purposes.
.It Fl l .It Fl l
Do not use the user's Do not use the user's
.Pa .rhosts .Pa .rhosts

View File

@ -120,7 +120,7 @@ void usage(void);
char slash[] = "/"; char slash[] = "/";
char bshell[] = _PATH_BSHELL; char bshell[] = _PATH_BSHELL;
#define OPTIONS "alnDL" #define OPTIONS "aDLln"
int int
main(int argc, char *argv[]) main(int argc, char *argv[])