diff options
Diffstat (limited to 'lib/libc/stdlib/getopt_long.3')
| -rw-r--r-- | lib/libc/stdlib/getopt_long.3 | 24 | 
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3 index e36ff84161a1..352af083f924 100644 --- a/lib/libc/stdlib/getopt_long.3 +++ b/lib/libc/stdlib/getopt_long.3 @@ -213,6 +213,18 @@ if there was a missing option argument,  .Ql \&?  if the user specified an unknown or ambiguous option, and  \-1 when the argument list has been exhausted. +.Sh ENVIRONMENT +.Bl -tag -width ".Ev POSIXLY_CORRECT" +.It Ev POSIXLY_CORRECT +If set, option processing stops when the first non-option is found and +a leading +.Ql - +or +.Ql + +in the +.Fa optstring +is ignored. +.El  .Sh EXAMPLES  .Bd -literal -compact  int bflag, ch, fd; @@ -450,18 +462,6 @@ relative  to current positions) are the same, though.  (We do fewer variable swaps.)  .El -.Sh ENVIRONMENT -.Bl -tag -width ".Ev POSIXLY_CORRECT" -.It Ev POSIXLY_CORRECT -If set, option processing stops when the first non-option is found and -a leading -.Ql - -or -.Ql + -in the -.Fa optstring -is ignored. -.El  .Sh SEE ALSO  .Xr getopt 3  .Sh HISTORY  | 
