summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-20 15:26:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-20 15:26:41 +0000
commitd56618f792fbd91155cc01ffb13ca4081263cae6 (patch)
tree560574cd98ee0e8f41430b8e985dc6ec77a14fbe /mandoc.1
parentb2372dd42b801bcd71447c8da82c59a80518d557 (diff)
downloadmandoc-d56618f792fbd91155cc01ffb13ca4081263cae6.tar.gz
For -Tlint, put parser messages on stdout instead of stderr.
Originally, naddy@ requested this in 2011 (or maybe even earlier). It was discussed with joerg@, kristaps@, naddy@, and espie@ in 2011, and everybody agreed in principle, but it was postponed because kristaps@ wanted to do some cleanup of the message system first. Meanwhile, message infrastructure was improved about a dozen times... This makes long, tedious commands like "mandoc -Tlint *.1 2>&1 | less" unnecessary and allows simple ones like "man -l -Tlint *.1".
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.14
1 files changed, 3 insertions, 1 deletions
diff --git a/mandoc.1 b/mandoc.1
index 138628a7..59457af1 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -238,7 +238,9 @@ See
.It Fl T Cm lint
Parse only: produce no output.
Implies
-.Fl W Cm all .
+.Fl W Cm all
+and redirects parser messages, which usually appear
+on standard error output, to standard output.
.It Fl T Cm locale
Encode output using the current locale.
This is the default.