source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Let -h imply -c (that is, not use the pager).
@ 2014-11-11  2:43 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-11-11  2:43 UTC (permalink / raw)
  To: source

Log Message:
-----------
Let -h imply -c (that is, not use the pager).
Usually, -h output is short, so the pager is just a nuisance.
Also, traditional man(1) does not use a pager for -h. 
Triggered by a remark of deraadt@ on ICB.

Modified Files:
--------------
    mdocml:
        main.c
        man.1
        mandoc.1

Revision Data
-------------
Index: mandoc.1
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.1,v
retrieving revision 1.121
retrieving revision 1.122
diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.121 -r1.122
--- mandoc.1
+++ mandoc.1
@@ -89,7 +89,7 @@ macro.
 .It Fl h
 Display only the SYNOPSIS lines.
 Implies
-.Fl a .
+.Fl c .
 .It Fl K Ns Ar encoding
 Specify the input encoding.
 The supported
Index: man.1
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man.1,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lman.1 -Lman.1 -u -p -r1.6 -r1.7
--- man.1
+++ man.1
@@ -98,7 +98,9 @@ options.
 .It Fl h
 Display only the SYNOPSIS lines of the requested manual pages.
 Implies
-.Fl a .
+.Fl a
+and
+.Fl c .
 .It Fl k
 A synonym for
 .Xr apropos 1 .
Index: main.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -Lmain.c -Lmain.c -u -p -r1.197 -r1.198
--- main.c
+++ main.c
@@ -177,6 +177,7 @@ main(int argc, char *argv[])
 		case 'h':
 			(void)strlcat(curp.outopts, "synopsis,", BUFSIZ);
 			synopsis_only = 1;
+			use_pager = 0;
 			outmode = OUTMODE_ALL;
 			break;
 		case 'I':
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-11  2:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11  2:43 mdocml: Let -h imply -c (that is, not use the pager) schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).