From ee3b44f521142aafa6c9ee955e03661261c1be08 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 9 Feb 2005 20:36:12 +0000 Subject: [PATCH] Sync program's usage() with manpage's SYNOPSIS. --- libexec/pppoed/pppoed.c | 2 +- libexec/revnetgroup/revnetgroup.8 | 5 +---- libexec/revnetgroup/revnetgroup.c | 2 +- libexec/rshd/rshd.8 | 8 +++----- libexec/rshd/rshd.c | 2 +- 5 files changed, 7 insertions(+), 12 deletions(-) diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index 3fdac99f6d59..8dfebb70ff27 100644 --- a/libexec/pppoed/pppoed.c +++ b/libexec/pppoed/pppoed.c @@ -73,7 +73,7 @@ static int usage(const char *prog) { 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; } diff --git a/libexec/revnetgroup/revnetgroup.8 b/libexec/revnetgroup/revnetgroup.8 index 9a6258a59fc3..84cf9f91b007 100644 --- a/libexec/revnetgroup/revnetgroup.8 +++ b/libexec/revnetgroup/revnetgroup.8 @@ -38,10 +38,7 @@ .Nd "generate reverse netgroup data" .Sh SYNOPSIS .Nm -.Fl u -.Op Fl f Ar netgroup_file -.Nm -.Fl h +.Fl u | h .Op Fl f Ar netgroup_file .Sh DESCRIPTION The diff --git a/libexec/revnetgroup/revnetgroup.c b/libexec/revnetgroup/revnetgroup.c index 0d4f379d8eca..505c482b3be8 100644 --- a/libexec/revnetgroup/revnetgroup.c +++ b/libexec/revnetgroup/revnetgroup.c @@ -63,7 +63,7 @@ struct member_entry *mtable[TABLESIZE]; static 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); } diff --git a/libexec/rshd/rshd.8 b/libexec/rshd/rshd.8 index fa6538965527..5b4ba9643627 100644 --- a/libexec/rshd/rshd.8 +++ b/libexec/rshd/rshd.8 @@ -40,7 +40,7 @@ .Nd remote shell server .Sh SYNOPSIS .Nm -.Op Fl \&?DLaln +.Op Fl aDLln .Sh DESCRIPTION The .Nm @@ -147,8 +147,8 @@ by .Pp The options are as follows: .Bl -tag -width indent -.It Fl \&? -Display the usage message, and exit. +.It Fl a +This flag is ignored, and is present for compatability purposes. .It Fl D Sets the TCP_NODELAY socket option, which improves the performance 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 .Li auth.info messages. -.It Fl a -This flag is ignored, and is present for compatability purposes. .It Fl l Do not use the user's .Pa .rhosts diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 323cb0a4e592..bf20936480f5 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -120,7 +120,7 @@ void usage(void); char slash[] = "/"; char bshell[] = _PATH_BSHELL; -#define OPTIONS "alnDL" +#define OPTIONS "aDLln" int main(int argc, char *argv[])