Correctly document when getopt returns EOF and '?', and some other

minor cleanup.
This commit is contained in:
Mike Pritchard 1996-08-21 19:48:50 +00:00
parent d8e3084fc5
commit 7b4e5796b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17748

View File

@ -122,7 +122,9 @@ The
function
returns an
.Dv EOF
when the argument list is exhausted, or a non-recognized
when the argument list is exhausted, or
.Ql ?
if a non-recognized
option is encountered.
The interpretation of options in the argument list may be canceled
by the option
@ -142,10 +144,10 @@ If the
function encounters a character not found in the string
.Va optarg
or detects
a missing option argument it writes an error message and returns
.Ql ?
to the
.Em stderr .
a missing option argument it writes an error message to the
.Em stderr
and returns
.Ql ? .
Setting
.Va opterr
to a zero will disable these error messages.