summaryrefslogtreecommitdiffstats
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
commitc3e7065441bd0ab25518a236f7d95b8bd84d2694 (patch)
tree07708e9dcfc7c69276562a6f433f743f92e107b5 /mandoc.1
parent8d9cd5cdd95aa9923e4a071a9e4c7f63545120d4 (diff)
downloadmandoc-c3e7065441bd0ab25518a236f7d95b8bd84d2694.tar.gz
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.117
1 files changed, 16 insertions, 1 deletions
diff --git a/mandoc.1 b/mandoc.1
index 7e31af4f..2ed605ca 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -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