aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.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 /mandoc.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 'mandoc.1')
-rw-r--r--mandoc.110
1 files changed, 7 insertions, 3 deletions
diff --git a/mandoc.1 b/mandoc.1
index dea7d2bd..6df15edc 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.109 2014/08/30 18:08:10 schwarze Exp $
+.\" $Id: mandoc.1,v 1.110 2014/09/03 05:22:45 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 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 MANDOC 1
.Os
.Sh NAME
@@ -23,7 +23,7 @@
.Nd format and display UNIX manuals
.Sh SYNOPSIS
.Nm mandoc
-.Op Fl acfklV
+.Op Fl acfhklV
.Sm off
.Op Fl I Cm os Li = Ar name
.Sm on
@@ -85,6 +85,10 @@ for the
.Xr mdoc 7
.Sq \&Os
macro.
+.It Fl h
+Display only the SYNOPSIS lines.
+Implies
+.Fl a .
.It Fl k
A synonym for
.Xr apropos 1 .