diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-30 18:08:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-30 18:08:10 +0000 |
commit | 24387bf29bff146c16b4c293b9c384cb99730d62 (patch) | |
tree | b30029cd4ba65d447185793fa6821d81fc364d6e /apropos.1 | |
parent | 3c2c418ed925503520d69d3b17650956b2324143 (diff) | |
download | mandoc-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.1 | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -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 |