summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2017-03-27 14:39:57 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2017-03-27 14:39:57 +0000
commitc51fb7ae23334ec8215037203f03b73cb27e847d (patch)
treebc5ccbb003f94e48c741d792754fc6b3ab5b95c4 /usr.bin/mandoc
parentf11fb4e250fc57367b92304c47f19aacd6832a64 (diff)
Simplify: mention at one place that -fkl override each other,
rather than stating it separately for each option. Suggested, OKed, and tweaked by jmc@.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/apropos.117
-rw-r--r--usr.bin/mandoc/man.126
-rw-r--r--usr.bin/mandoc/mandoc.122
3 files changed, 17 insertions, 48 deletions
diff --git a/usr.bin/mandoc/apropos.1 b/usr.bin/mandoc/apropos.1
index b17f4d7652b..8bce0800803 100644
--- a/usr.bin/mandoc/apropos.1
+++ b/usr.bin/mandoc/apropos.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: apropos.1,v 1.35 2017/03/25 12:46:34 schwarze Exp $
+.\" $OpenBSD: apropos.1,v 1.36 2017/03/27 14:39:56 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011, 2012, 2014, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 25 2017 $
+.Dd $Mdocdate: March 27 2017 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -96,20 +96,10 @@ in manual page names only.
The search is case insensitive and matches whole words only.
In this mode, macro keys, comparison operators, and logical operators
are not available.
-This overrides any earlier
-.Fl k
-and
-.Fl l
-options.
.It Fl k
Support the full
.Ar expression
syntax.
-This overrides any earlier
-.Fl f
-and
-.Fl l
-options.
It is the default for
.Nm .
.It Fl M Ar path
@@ -147,6 +137,9 @@ The options
.Fl chlw
are also supported and are documented in
.Xr man 1 .
+The options
+.Fl fkl
+are mutually exclusive and override each other.
.Pp
An
.Ar expression
diff --git a/usr.bin/mandoc/man.1 b/usr.bin/mandoc/man.1
index 5cfac8f0e08..3d7f10adf8b 100644
--- a/usr.bin/mandoc/man.1
+++ b/usr.bin/mandoc/man.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: man.1,v 1.24 2017/03/25 12:46:34 schwarze Exp $
+.\" $OpenBSD: man.1,v 1.25 2017/03/27 14:39:56 schwarze Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -31,7 +31,7 @@
.\"
.\" @(#)man.1 8.2 (Berkeley) 1/2/94
.\"
-.Dd $Mdocdate: March 25 2017 $
+.Dd $Mdocdate: March 27 2017 $
.Dt MAN 1
.Os
.Sh NAME
@@ -91,11 +91,6 @@ It searches for
.Ar name
in manual page names and displays the header lines from all matching pages.
The search is case insensitive and matches whole words only.
-This overrides any earlier
-.Fl k
-and
-.Fl l
-options.
.It Fl h
Display only the SYNOPSIS lines of the requested manual pages.
Implies
@@ -111,11 +106,6 @@ an expression can be provided using the syntax described in the
.Xr apropos 1
manual.
By default, it displays the header lines of all matching pages.
-This overrides any earlier
-.Fl f
-and
-.Fl l
-options.
.It Fl l
A synonym for
.Xr mandoc 1
@@ -127,15 +117,10 @@ No search is done and
.Ar file ,
.Ar path ,
.Ar section ,
-and
-.Ar subsection
-are ignored.
-This overrides any earlier
-.Fl f ,
-.Fl k ,
+.Ar subsection ,
and
.Fl w
-options.
+are ignored.
.It Fl M Ar path
Override the list of standard directories which
.Nm
@@ -218,6 +203,9 @@ The options
.Fl IKOTW
are also supported and are documented in
.Xr mandoc 1 .
+The options
+.Fl fkl
+are mutually exclusive and override each other.
.Pp
Guidelines for writing
man pages can be found in
diff --git a/usr.bin/mandoc/mandoc.1 b/usr.bin/mandoc/mandoc.1
index d223a43c97b..e3b932bde7b 100644
--- a/usr.bin/mandoc/mandoc.1
+++ b/usr.bin/mandoc/mandoc.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mandoc.1,v 1.105 2017/03/21 18:25:32 schwarze Exp $
+.\" $OpenBSD: mandoc.1,v 1.106 2017/03/27 14:39:56 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: March 21 2017 $
+.Dd $Mdocdate: March 27 2017 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -68,11 +68,6 @@ It can be specified to override
.It Fl f
A synonym for
.Xr whatis 1 .
-This overrides any earlier
-.Fl k
-and
-.Fl l
-options.
.It Fl h
Display only the SYNOPSIS lines.
Implies
@@ -123,19 +118,9 @@ Otherwise, input is interpreted as
.It Fl k
A synonym for
.Xr apropos 1 .
-This overrides any earlier
-.Fl f
-and
-.Fl l
-options.
.It Fl l
A synonym for
.Fl a .
-Also reverts any earlier
-.Fl f
-and
-.Fl k
-options.
.It Fl mdoc | man
With
.Fl mdoc ,
@@ -222,6 +207,9 @@ also supports the options
described in the
.Xr apropos 1
manual.
+The options
+.Fl fkl
+are mutually exclusive and override each other.
.Ss Output Formats
The
.Nm