summaryrefslogtreecommitdiffstats
path: root/man.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
commit23314f00a3de516604e28d2a34bde0428f6067fb (patch)
tree41f72d0cdd36e6f74d193974466fff1871fa7967 /man.1
parent3d35e7c87bf69138c20259187b52c26c01ab6cda (diff)
downloadmandoc-23314f00a3de516604e28d2a34bde0428f6067fb.tar.gz
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 'man.1')
-rw-r--r--man.17
1 files changed, 3 insertions, 4 deletions
diff --git a/man.1 b/man.1
index e9864676..eb266fe7 100644
--- a/man.1
+++ b/man.1
@@ -1,5 +1,4 @@
.\" $Id$
-.\" $OpenBSD: man.1,v 1.55 2014/04/03 06:15:18 jmc Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -97,9 +96,9 @@ and
.Fl l
options.
.It Fl h
-Display only the
-.Dq SYNOPSIS
-lines of the requested manual pages.
+Display only the SYNOPSIS lines of the requested manual pages.
+Implies
+.Fl a .
.It Fl k
A synonym for
.Xr apropos 1 .