diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-03 05:22:45 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-03 05:22:45 +0000 |
commit | 02046d75d7ec4c27ec31d04e15c9d9fe018a01ab (patch) | |
tree | 88fb456e129ed40338e63c83d92faea4da97a7b1 /mandoc.1 | |
parent | 62dcabc9f407fb96cb3f2517d3f6d5f39dd756b1 (diff) | |
download | mandoc-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.1 | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 . |