Browse Source

document that no leading whitespace is permitted between the option and

argument if the argument is deemed to be optional ('::').
feedback and ok jmc@ and millert@
OPENBSD_4_6
okan 15 years ago
parent
commit
3bc42fd077
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/lib/libc/stdlib/getopt.3

+ 5
- 3
src/lib/libc/stdlib/getopt.3 View File

@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: getopt.3,v 1.40 2007/05/31 19:19:31 jmc Exp $
.\" $OpenBSD: getopt.3,v 1.41 2009/04/12 23:13:36 okan Exp $
.\" .\"
.Dd $Mdocdate: May 31 2007 $
.Dd $Mdocdate: April 12 2009 $
.Dt GETOPT 3 .Dt GETOPT 3
.Os .Os
.Sh NAME .Sh NAME
@ -73,7 +73,9 @@ recognizes an option and argument
.Fl x Ar argument . .Fl x Ar argument .
It does not matter to It does not matter to
.Fn getopt .Fn getopt
if a following argument has leading whitespace.
if a following argument has leading whitespace; except in the case where
the argument is optional, denoted with two colons, no leading whitespace
is permitted.
.Pp .Pp
On return from On return from
.Fn getopt , .Fn getopt ,


Loading…
Cancel
Save