From 02046d75d7ec4c27ec31d04e15c9d9fe018a01ab Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 3 Sep 2014 05:22:45 +0000 Subject: 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. --- man.1 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'man.1') diff --git a/man.1 b/man.1 index bff2fd5e..b9644446 100644 --- a/man.1 +++ b/man.1 @@ -1,5 +1,4 @@ -.\" $Id: man.1,v 1.4 2014/08/30 18:08:10 schwarze Exp $ -.\" $OpenBSD: man.1,v 1.55 2014/04/03 06:15:18 jmc Exp $ +.\" $Id: man.1,v 1.5 2014/09/03 05:22:45 schwarze Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +31,7 @@ .\" .\" @(#)man.1 8.2 (Berkeley) 1/2/94 .\" -.Dd $Mdocdate: August 30 2014 $ +.Dd $Mdocdate: September 3 2014 $ .Dt MAN 1 .Os .Sh NAME @@ -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 . -- cgit v1.2.3