OS Manuals

/usr/bin/mandoc

The roff/mdoc manual page formatter and viewer

From mandoc 1.14.6-r2 (enterprise-packages), captured 2026-11-09 by running mandoc --help (exit 5). permalink

/usr/bin/mandoc: invalid option -- '-'
/usr/bin/mandoc: invalid option -- 'e'
/usr/bin/mandoc: invalid option -- 'p'
usage: mandoc [-ac] [-I os=name] [-K encoding] [-mdoc | -man] [-O options]
	      [-T output] [-W level] [file ...]
Options (8)
OptionDescriptionSource
-aIf the standard output is a terminal device and -c is not specified, use less(1) to paginate the output, just like man(1) would.man
-cCopy the formatted manual pages to the standard output without using less(1) to paginate them.man
-I os=nameOverride the default operating system name for the mdoc(7) Os and for the man(7) TH macro.man
-K encodingSpecify the input encoding.man
-mdoc, -manWith -mdoc, all input files are interpreted as mdoc(7).man
-O optionsComma-separated output options.man
-T outputSelect the output format.man
-W levelSpecify the minimum message level to be reported on the standard error output and to affect the exit status.man
Exit status (7) from the manual page
0No base system convention violations, style suggestions, warnings, or errors occurred, or those that did were ignored because they were lower than the requested level.
1At least one base system convention violation or style suggestion occurred, but no warning or error, and -W base or -W style was specified.
2At least one warning occurred, but no error, and -W warning or a lower level was requested.
3At least one parsing error occurred, but no unsupported feature was encountered, and -W error or a lower level was requested.
4At least one unsupported feature was encountered, and -W unsupp or a lower level was requested.
5Invalid command line arguments were specified.
6An operating system error occurred, for example exhaustion of memory, file descriptors, or process table entries.
Examples (5) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.