summaryrefslogtreecommitdiff
path: root/usr.bin/apropos/apropos.1
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2008-12-24 09:05:18 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2008-12-24 09:05:18 +0000
commiteb745a0fe8f395cd46dff421e733a84aace8b1aa (patch)
tree8aee80bbf68c5f36826edb212c7e244ced2d5b48 /usr.bin/apropos/apropos.1
parent0fd34fb48e410be83e96034843733c077a95d7b1 (diff)
add -S and -s options, similar to man(1), for restricting
searches by section number and architecture; diff from Ingo Schwarze; ok deraadt millert sobrado
Diffstat (limited to 'usr.bin/apropos/apropos.1')
-rw-r--r--usr.bin/apropos/apropos.112
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/apropos/apropos.1 b/usr.bin/apropos/apropos.1
index 1b2644fb3b9..459e1faf8e6 100644
--- a/usr.bin/apropos/apropos.1
+++ b/usr.bin/apropos/apropos.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: apropos.1,v 1.12 2007/08/06 19:16:06 sobrado Exp $
+.\" $OpenBSD: apropos.1,v 1.13 2008/12/24 09:05:17 jmc Exp $
.\" $NetBSD: apropos.1,v 1.4 1995/09/04 20:46:17 tls Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)apropos.1 8.1 (Berkeley) 6/29/93
.\"
-.Dd $Mdocdate: August 6 2007 $
+.Dd $Mdocdate: December 24 2008 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -41,6 +41,8 @@
.Op Fl C Ar file
.Op Fl M Ar path
.Op Fl m Ar path
+.Op Fl S Ar subsection
+.Op Fl s Ar section
.Ar keyword ...
.Sh DESCRIPTION
.Nm
@@ -98,6 +100,12 @@ or the directories supplied with the
option or the
.Ev MANPATH
environment variable.
+.It Fl S Ar subsection
+Restrict the search to pages for the specified machine architecture.
+By default, pages for all architectures are shown.
+.It Fl s Ar section
+Restrict the search to the specified section of the manual.
+By default, pages from all sections are shown.
.El
.Sh ENVIRONMENT
.Bl -tag -width MANPATH