document man

This commit is contained in:
rsc 2005-01-14 19:03:18 +00:00
parent 2e0480d28e
commit aae5c0bc63
2 changed files with 17 additions and 6 deletions

View file

@ -73,7 +73,7 @@ S=$PLAN9/man
d=0 d=0
while(~ $d 0) { while(~ $d 0) {
if(~ $#* 0) { if(~ $#* 0) {
echo 'Usage: man [-ntp] [-s sec] [0-9] [0-9] ... name1 name2 ...' >[1=2] echo 'Usage: man [-hnpPtw] [-s sec] [0-9] [0-9] ... [--] name1 name2 ...' >[1=2]
exit exit
} }
if(test -d $S/man$1){ if(test -d $S/man$1){

View file

@ -4,11 +4,14 @@ man, lookman, sig \- print or find pages of this manual
.SH SYNOPSIS .SH SYNOPSIS
.B man .B man
[ [
.I option ... .B -hnpPtw
] ]
[ [
.I section ... .I section ...
] ]
[
.B --
]
.I title ... .I title ...
.PP .PP
.B lookman .B lookman
@ -40,6 +43,15 @@ section at the top of the page will serve as a
.PP .PP
The options are: The options are:
.TP .TP
.B -h
Print the pages to HTML and send to a web browser with
.IR web (1).
.TP
.B -n
(Default)
Print the pages on the standard output using
.IR nroff .
.TP
.B -p .B -p
Run Run
.IR proof (1) .IR proof (1)
@ -56,10 +68,9 @@ Run
and send its output and send its output
to standard output. to standard output.
.TP .TP
.B -n .B -w
(Default) Print the file names for the pages.
Print the pages on the standard output using .PD
.IR nroff .
.PP .PP
.B Lookman .B Lookman
prints the names of all manual sections that contain prints the names of all manual sections that contain