From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Let -h imply -c (that is, not use the pager).
Date: Mon, 10 Nov 2014 21:43:42 -0500 (EST) [thread overview]
Message-ID: <201411110243.sAB2hgBj008053@krisdoz.my.domain> (raw)
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
reply other threads:[~2014-11-11 2:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201411110243.sAB2hgBj008053@krisdoz.my.domain \
--to=schwarze@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).