diff options
author | 2019-01-01 08:18:11 +0000 | |
---|---|---|
committer | 2019-01-01 08:18:11 +0000 | |
commit | 3b8a9f3d5a3fe6fb5c1f5e1bee2a81ec212fd501 (patch) | |
tree | 8b4c017d96a1addce6d5ee35c251c86e52f6b025 /mandoc.1 | |
parent | 2fd178dd414bc5241e3bfcc62b303d84f58bb147 (diff) | |
download | mandoc-3b8a9f3d5a3fe6fb5c1f5e1bee2a81ec212fd501.tar.gz mandoc-3b8a9f3d5a3fe6fb5c1f5e1bee2a81ec212fd501.tar.zst mandoc-3b8a9f3d5a3fe6fb5c1f5e1bee2a81ec212fd501.zip |
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 | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.235 2018/12/28 00:15:11 schwarze Exp $ +.\" $Id: mandoc.1,v 1.236 2019/01/01 08:18:11 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2012, 2014-2018 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: December 28 2018 $ +.Dd $Mdocdate: January 1 2019 $ .Dt MANDOC 1 .Os .Sh NAME @@ -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 |