diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-01 08:18:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-01-01 08:18:11 +0000 |
commit | 296e5bf4695364984a7f038bb773183a4b86de57 (patch) | |
tree | b72d5507eec65120f4478aad984f726fcf89d706 /mandoc.1 | |
parent | 7b077be2dfd7b4594ea92b54cadae2663aa621ab (diff) | |
download | mandoc-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.1 | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |