diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-04-12 23:13:37 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-04-12 23:13:37 +0000 |
commit | 56e8c1a9fb12d49886b506fbfb9a78a5f831b3ec (patch) | |
tree | 93497c0c733c9448b31b0f4df937f9d88f05ea30 /usr.bin/getopt | |
parent | e966e2ca3cda0d97efe68ed6139a53942a9d45fc (diff) |
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@
Diffstat (limited to 'usr.bin/getopt')
-rw-r--r-- | usr.bin/getopt/getopt.1 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1 index 42515ff0ca3..053cc27e7fd 100644 --- a/usr.bin/getopt/getopt.1 +++ b/usr.bin/getopt/getopt.1 @@ -1,9 +1,9 @@ -.\" $OpenBSD: getopt.1,v 1.14 2007/05/31 19:20:10 jmc Exp $ -*- nroff -*- +.\" $OpenBSD: getopt.1,v 1.15 2009/04/12 23:13:36 okan Exp $ -*- nroff -*- .\" .\" This material, written by Henry Spencer, was released by him .\" into the public domain and is thus not subject to any copyright. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: April 12 2009 $ .Dt GETOPT 1 .Os .Sh NAME @@ -21,6 +21,9 @@ is a string of recognized option letters (see if a letter is followed by a colon, the option is expected to have an argument which may or may not be separated from it by whitespace. +However, if a letter is followed by two colons, the argument is optional +and may not be separated by whitespace \- this is an extension not +covered by POSIX. The special option .Sq -- is used to delimit the end of the options. |