aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apropos.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-09-03 05:22:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-09-03 05:22:45 +0000
commit02046d75d7ec4c27ec31d04e15c9d9fe018a01ab (patch)
tree88fb456e129ed40338e63c83d92faea4da97a7b1 /apropos.1
parent62dcabc9f407fb96cb3f2517d3f6d5f39dd756b1 (diff)
downloadmandoc-02046d75d7ec4c27ec31d04e15c9d9fe018a01ab.tar.gz
mandoc-02046d75d7ec4c27ec31d04e15c9d9fe018a01ab.tar.zst
mandoc-02046d75d7ec4c27ec31d04e15c9d9fe018a01ab.zip
Implement the traditional -h option for man(1): show the SYNOPSIS only.
As usual, we get mandoc -h and apropos -h for free. Try stuff like "apropos -h In=dirent" or "apropos -h Fa=timespec". Only useful for terminal output, so -Tps, -Tpdf, -Thtml ignore -h for now.
Diffstat (limited to 'apropos.1')
-rw-r--r--apropos.111
1 files changed, 8 insertions, 3 deletions
diff --git a/apropos.1 b/apropos.1
index 6affb6c4..50b250d0 100644
--- a/apropos.1
+++ b/apropos.1
@@ -1,4 +1,4 @@
-.\" $Id: apropos.1,v 1.34 2014/08/30 18:08:10 schwarze Exp $
+.\" $Id: apropos.1,v 1.35 2014/09/03 05:22:45 schwarze Exp $
.\"
.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2011, 2012, 2014 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: August 30 2014 $
+.Dd $Mdocdate: September 3 2014 $
.Dt APROPOS 1
.Os
.Sh NAME
@@ -24,7 +24,7 @@
.Nd search manual page databases
.Sh SYNOPSIS
.Nm
-.Op Fl acfklVw
+.Op Fl acfhklVw
.Op Fl C Ar file
.Op Fl M Ar path
.Op Fl m Ar path
@@ -107,6 +107,11 @@ This overrides any earlier
and
.Fl l
options.
+.It Fl h
+Instead of showing the title lines, show the SYNOPSIS sections, just like
+.Xr man 1
+.Fl h
+would.
.It Fl k
Support the full
.Ar expression