summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-01-01 08:18:11 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-01-01 08:18:11 +0000
commit296e5bf4695364984a7f038bb773183a4b86de57 (patch)
treeb72d5507eec65120f4478aad984f726fcf89d706 /mandoc.1
parent7b077be2dfd7b4594ea92b54cadae2663aa621ab (diff)
downloadmandoc-296e5bf4695364984a7f038bb773183a4b86de57.tar.gz
Support taking the -O tag value from apropos(1) key=value search terms;
feature improvement suggested by kn@. While here, also make "-O value" work from standard input. OK kn@
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.112
1 files changed, 10 insertions, 2 deletions
diff --git a/mandoc.1 b/mandoc.1
index 8c47c1c7..7db089fa 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -307,8 +307,16 @@ If no
is specified, reuse the first command line argument that is not a
.Ar section
number.
-This is useful when it is the name of a manual page,
-in particular the name of a library function.
+If that argument is in
+.Xr apropos 1
+.Ar key Ns = Ns Ar val
+format, only the
+.Ar val
+is used rather than the argument as a whole.
+This is useful for commands like
+.Ql man -akO tag Ic=ulimit
+to search for a keyword and jump right to its definition
+in the matching manual pages.
.It Cm width Ns = Ns Ar width
The output width is set to
.Ar width