summaryrefslogtreecommitdiffstats
path: root/apropos.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-30 18:08:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-30 18:08:10 +0000
commit24387bf29bff146c16b4c293b9c384cb99730d62 (patch)
treeb30029cd4ba65d447185793fa6821d81fc364d6e /apropos.1
parent3c2c418ed925503520d69d3b17650956b2324143 (diff)
downloadmandoc-24387bf29bff146c16b4c293b9c384cb99730d62.tar.gz
Introduce a man(1) -l option as an alias for mandoc -a.
Basically, this does the same as man -l in Linux man-db. The point is that now all functionality of the combined tool is reachable from the man(1) command name: apropos = man -k, whatis = man -f, mandoc = man -cl. Originally suggested by Carsten dot Kunze at arcor dot de, current maintainer of the Heirloom Documentation Tools. While here, add various missing information to the usage() and to the manuals.
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.122
1 files changed, 19 insertions, 3 deletions
diff --git a/apropos.1 b/apropos.1
index 52489096..cc169da2 100644
--- a/apropos.1
+++ b/apropos.1
@@ -24,7 +24,7 @@
.Nd search manual page databases
.Sh SYNOPSIS
.Nm
-.Op Fl acfkw
+.Op Fl acfklVw
.Op Fl C Ar file
.Op Fl M Ar path
.Op Fl m Ar path
@@ -104,16 +104,30 @@ In this mode, macro keys, comparison operators, and logical operators
are not available.
This overrides any earlier
.Fl k
-option.
+and
+.Fl l
+options.
.It Fl k
Support the full
.Ar expression
syntax.
This overrides any earlier
.Fl f
-option.
+and
+.Fl l
+options.
It is the default for
.Nm .
+.It Fl l
+An alias for
+.Xr mandoc 1
+.Fl a .
+This overrides any earlier
+.Fl f ,
+.Fl k ,
+and
+.Fl w
+options.
.It Fl M Ar path
Use the colon-separated path instead of the default list of paths
searched for
@@ -143,6 +157,8 @@ By default, pages from all sections are shown.
See
.Xr man 1
for a listing of sections.
+.It Fl V
+Print version and exit.
.It Fl w
Instead of showing title lines, show the pathnames of the matching
manual pages, just like