aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos.1
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-20 21:36:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-20 21:36:00 +0000
commitd5d0d459cb106ab5ac810b199895a5d6c40f7a6a (patch)
tree499e07e5218dc4d51b34c18e119be7ceba4a172b /apropos.1
parent06acc5d53500a0a7feb20e948d2a07950d0b4bad (diff)
downloadmandoc-d5d0d459cb106ab5ac810b199895a5d6c40f7a6a.tar.gz
mandoc-d5d0d459cb106ab5ac810b199895a5d6c40f7a6a.tar.zst
mandoc-d5d0d459cb106ab5ac810b199895a5d6c40f7a6a.zip
Initial support for man.conf/makepath(1).
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.118
1 files changed, 14 insertions, 4 deletions
diff --git a/apropos.1 b/apropos.1
index 3b5c7632..dc817725 100644
--- a/apropos.1
+++ b/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id: apropos.1,v 1.6 2011/11/20 16:29:50 kristaps Exp $
+.\" $Id: apropos.1,v 1.7 2011/11/20 21:36:00 kristaps Exp $
.\"
.\" Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -22,6 +22,7 @@
.Nd search manual page databases
.Sh SYNOPSIS
.Nm
+.Op Fl M Ar manpath
.Op Fl m Ar manpath
.Op Fl S Ar arch
.Op Fl s Ar section
@@ -36,8 +37,14 @@ evaluating on
for each file in each database.
Its arguments are as follows:
.Bl -tag -width Ds
+.It Fl M Ar manpath
+Use the colon-separated path instead of the default list of paths
+searched for
+.Xr mandocdb 8
+databases.
+Invalid paths, or paths without manual databases, are ignored.
.It Fl m Ar manpath
-Append the colon-separated paths to the default list of paths searched
+Append the colon-separated paths to the list of paths searched
for
.Xr mandocdb 8
databases.
@@ -112,9 +119,10 @@ is evaluated case-insensitively.
.Pp
By default,
.Nm
-searches for a
+searches for
.Xr mandocdb 8
-database in the current working directory and
+databases in the default paths stipulated by
+.Xr man 1 ,
parses terms as case-sensitive regular expressions
.Pq the Li \&~ operator
over manual names and descriptions
@@ -150,6 +158,8 @@ If an architecture is specified in the output, use
Comma-separated paths overriding the default list of paths searched for
manual databases.
Invalid paths, or paths without manual databases, are ignored.
+Takes precedence over
+.Fl M .
.El
.\" .Sh FILES
.Sh EXIT STATUS