summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sobrado <sobrado@cvs.openbsd.org>2009-10-20 09:47:04 +0000
committerIgor Sobrado <sobrado@cvs.openbsd.org>2009-10-20 09:47:04 +0000
commit3125fa30b87860b049a666004ce3dd42582e817b (patch)
tree63597217f74003d408bc971f3fe1d718c647161c
parent07ee956cedc8da870e773ad02515bb972e8fd769 (diff)
improve the synopsis of mkalias(8) and sort the list of flags on
the manual page. ok jmc@
-rw-r--r--usr.sbin/ypserv/mkalias/mkalias.847
-rw-r--r--usr.sbin/ypserv/mkalias/mkalias.c6
2 files changed, 26 insertions, 27 deletions
diff --git a/usr.sbin/ypserv/mkalias/mkalias.8 b/usr.sbin/ypserv/mkalias/mkalias.8
index 9e37c19ad6f..55e3e630895 100644
--- a/usr.sbin/ypserv/mkalias/mkalias.8
+++ b/usr.sbin/ypserv/mkalias/mkalias.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mkalias.8,v 1.9 2007/05/31 19:20:31 jmc Exp $
+.\" $OpenBSD: mkalias.8,v 1.10 2009/10/20 09:47:03 sobrado Exp $
.\"
.\" Copyright (c) 1997 Mats O Jansson <moj@stacken.kth.se>
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: October 20 2009 $
.Dt MKALIAS 8
.Os
.Sh NAME
@@ -32,12 +32,11 @@
.Nd a YP map conversion program
.Sh SYNOPSIS
.Nm mkalias
-.Op Fl v
-.Op Fl e
-.Op Fl E
-.Op Fl d
-.Op Fl u
-.Op Fl n
+.Op Fl nv
+.Oo
+.Fl E | e
+.Op Fl du
+.Oc
.Ar input
.Op Ar output
.Sh DESCRIPTION
@@ -47,37 +46,37 @@ This is an inverse map of user@host (or user!host) back to alias.
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl v
-Verbose mode.
-.It Fl e
-Check host to verify that it exists.
+.It Fl d
+Assume domain names are OK.
+Only useful together with
+.Fl E
+or
+.Fl e .
.It Fl E
Same as
.Fl e ,
but also check for any MX-record.
-.It Fl d
-Assume Domain names are OK.
-Only useful together with
-.Fl e
-or
-.Fl E .
+.It Fl e
+Check host to verify that it exists.
+.It Fl n
+Capitalize name. e.g., mats.o.jansson becomes Mats.O.Jansson.
.It Fl u
Assume UUCP names are OK.
Only useful together with
-.Fl e
+.Fl E
or
-.Fl E .
-.It Fl n
-Capitalize name. e.g., mats.o.jansson becomes Mats.O.Jansson.
+.Fl e .
+.It Fl v
+Verbose mode.
.It Ar input
Use this map as input.
.It Ar output
Use this map as output.
If the output map isn't given don't create database.
Can be useful together with
-.Fl e
+.Fl E
or
-.Fl E .
+.Fl e .
.El
.Sh SEE ALSO
.Xr yp 8 ,
diff --git a/usr.sbin/ypserv/mkalias/mkalias.c b/usr.sbin/ypserv/mkalias/mkalias.c
index f3423fd5294..11ede3a250c 100644
--- a/usr.sbin/ypserv/mkalias/mkalias.c
+++ b/usr.sbin/ypserv/mkalias/mkalias.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkalias.c,v 1.21 2007/09/04 14:37:53 fgsch Exp $ */
+/* $OpenBSD: mkalias.c,v 1.22 2009/10/20 09:47:03 sobrado Exp $ */
/*
* Copyright (c) 1997 Mats O Jansson <moj@stacken.kth.se>
@@ -27,7 +27,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: mkalias.c,v 1.21 2007/09/04 14:37:53 fgsch Exp $";
+static const char rcsid[] = "$OpenBSD: mkalias.c,v 1.22 2009/10/20 09:47:03 sobrado Exp $";
#endif
#include <ctype.h>
@@ -132,7 +132,7 @@ static void
usage(void)
{
fprintf(stderr,
- "usage: mkalias [-v] [-e|-E [-d] [-u]] [-n] input [output]\n");
+ "usage: mkalias [-nv] [-E | -e [-du]] input [output]\n");
exit(1);
}