diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1996-08-21 19:48:50 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1996-08-21 19:48:50 +0000 |
| commit | 7b4e5796b921fa69629efd1c167c072d1343b69e (patch) | |
| tree | 97c67e52e6474e2316e89672d6149a1f4b775fc3 /lib/libc/stdlib | |
| parent | d8e3084fc5252228517b16615d6b002a501259b7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/getopt.3 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index 4d51bac04d74..3047183d9331 100644 --- a/lib/libc/stdlib/getopt.3 +++ b/lib/libc/stdlib/getopt.3 @@ -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. |
