=================================================================== RCS file: /cvs/mandoc/apropos.1,v retrieving revision 1.23 retrieving revision 1.26 diff -u -p -r1.23 -r1.26 --- mandoc/apropos.1 2014/03/17 09:43:56 1.23 +++ mandoc/apropos.1 2014/04/15 23:02:27 1.26 @@ -1,6 +1,7 @@ -.\" $Id: apropos.1,v 1.23 2014/03/17 09:43:56 schwarze Exp $ +.\" $Id: apropos.1,v 1.26 2014/04/15 23:02:27 schwarze Exp $ .\" .\" Copyright (c) 2011, 2012 Kristaps Dzonsons +.\" Copyright (c) 2011, 2012, 2014 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above @@ -14,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: March 17 2014 $ +.Dd $Mdocdate: April 15 2014 $ .Dt APROPOS 1 .Os .Sh NAME @@ -26,6 +27,7 @@ .Op Fl C Ar file .Op Fl M Ar path .Op Fl m Ar path +.Op Fl O Ar outkey .Op Fl S Ar arch .Op Fl s Ar section .Ar expression ... @@ -75,6 +77,10 @@ for .Xr mandocdb 8 databases. Invalid paths, or paths without manual databases, are ignored. +.It Fl O Ar outkey +Show the values associated with the key +.Ar outkey +instead of the manual descriptions. .It Fl S Ar arch Restrict the search to pages for the specified .Xr machine 1 @@ -192,6 +198,8 @@ Names and description: .Bl -column "xLix" description -offset indent -compact .It Li \&Nm Ta manual name .It Li \&Nd Ta one-line manual description +.It Li arch Ta machine architecture (case-insensitive) +.It Li sec Ta manual section number .El .Pp Sections and cross references: @@ -320,6 +328,15 @@ with the argument .Qq ssh : .Pp .Dl $ apropos \-\- \-i 'Nm~[[:<:]]ssh[[:>:]]' +.Pp +The following two invocations are equivalent: +.Pp +.D1 Li $ apropos -S Ar arch Li -s Ar section expression +.Bd -ragged -offset indent +.Li $ apropos \e( Ar expression Li \e) +.Li -a arch~^( Ns Ar arch Ns Li |any)$ +.Li -a sec~^ Ns Ar section Ns Li $ +.Ed .Sh SEE ALSO .Xr man 1 , .Xr re_format 7 , @@ -330,7 +347,7 @@ An utility first appeared in .Bx 2 . It was rewritten from scratch for -.Ox 5.1 . +.Ox 5.6 . .Pp The .Fl M @@ -358,4 +375,6 @@ wrote the original .Nm in February 1979. The current version was written by -.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv . +.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv +and +.An Ingo Schwarze Aq Mt schwarze@openbsd.org .