aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-22 03:42:18 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-22 03:42:18 +0000
commitd9b8d132cdb084ba9070449dea785f3aab99c335 (patch)
treed88359b923e814a0af936b9fb1472481c7d1557d /mandoc.1
parenta42f210a473e732d8b21465b45c0c5e09d2144e8 (diff)
downloadmandoc-d9b8d132cdb084ba9070449dea785f3aab99c335.tar.gz
mandoc-d9b8d132cdb084ba9070449dea785f3aab99c335.tar.zst
mandoc-d9b8d132cdb084ba9070449dea785f3aab99c335.zip
mandoc -a, man, apropos -a, whatis -a now paginate by default
but provide an option -c to not paginate; taking inspiration from manpage.c, hence adding (c) 2012 kristaps@
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.121
1 files changed, 18 insertions, 3 deletions
diff --git a/mandoc.1 b/mandoc.1
index e9f73757..a9e4a67d 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.106 2014/08/08 01:50:59 schwarze Exp $
+.\" $Id: mandoc.1,v 1.107 2014/08/22 03:42:18 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -15,7 +15,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 8 2014 $
+.Dd $Mdocdate: August 22 2014 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -23,7 +23,7 @@
.Nd format and display UNIX manuals
.Sh SYNOPSIS
.Nm mandoc
-.Op Fl V
+.Op Fl acV
.Sm off
.Op Fl I Cm os Li = Ar name
.Sm on
@@ -53,6 +53,21 @@ output.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
+.It Fl a
+If the standard output is a terminal device and
+.Fl c
+is not specified, use
+.Xr more 1
+to paginate the output, just like
+.Xr man 1
+would.
+.It Fl c
+Copy the formatted manual pages to the standard output without using
+.Xr more 1
+to paginate them.
+This is the default.
+It can be specified to override
+.Fl a .
.Sm off
.It Fl I Cm os Li = Ar name
.Sm on