summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-19 20:40:45 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-19 20:40:45 +0000
commitd5e595f55f167fc529338cb181efbe82889e4ecb (patch)
tree51c2e89674c05b8051ad87d17f7b4dcabe08e34b
parent671eca3e7667cd92e025755a73cfa7aed29088f0 (diff)
In the synopsis, put options that take no arguments before those that do.
This also makes it easier to find the crucial difference between the two synopses, which is the "-e". Suggested by kn@; OK jmc@.
-rw-r--r--usr.sbin/config/config.86
-rw-r--r--usr.sbin/config/main.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/config/config.8 b/usr.sbin/config/config.8
index 36d81526693..a681100deba 100644
--- a/usr.sbin/config/config.8
+++ b/usr.sbin/config/config.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: config.8,v 1.67 2019/05/14 13:44:25 tedu Exp $
+.\" $OpenBSD: config.8,v 1.68 2019/07/19 20:40:44 schwarze Exp $
.\" $NetBSD: config.8,v 1.10 1996/08/31 20:58:16 mycroft Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" from: @(#)config.8 8.2 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: May 14 2019 $
+.Dd $Mdocdate: July 19 2019 $
.Dt CONFIG 8
.Os
.Sh NAME
@@ -43,10 +43,10 @@
.Op Fl s Ar srcdir
.Op Ar config-file
.Nm config
+.Fl e
.Op Fl u
.Op Fl c Ar cmdfile
.Op Fl f | o Ar outfile
-.Fl e
.Ar infile
.Sh DESCRIPTION
In the first synopsis form, the
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index e7efacf871a..4d6e88654ad 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.60 2019/05/14 13:44:25 tedu Exp $ */
+/* $OpenBSD: main.c,v 1.61 2019/07/19 20:40:44 schwarze Exp $ */
/* $NetBSD: main.c,v 1.22 1997/02/02 21:12:33 thorpej Exp $ */
/*
@@ -82,7 +82,7 @@ usage(void)
fprintf(stderr,
"usage: %s [-p] [-b builddir] [-s srcdir] [config-file]\n"
- " %s [-u] [-c cmdfile] [-f | -o outfile] -e infile\n",
+ " %s -e [-u] [-c cmdfile] [-f | -o outfile] infile\n",
__progname, __progname);
exit(1);