diff options
author | okan <> | 2009-04-12 23:13:36 +0000 |
---|---|---|
committer | okan <> | 2009-04-12 23:13:36 +0000 |
commit | 216bfd64deba6e82096b1370a70cd71e96ddba73 (patch) | |
tree | d7222158eced7df47a322dd349069004d59b5fcc | |
parent | 81cc21e17f42ab47e48fc157c74e1cc50b0c174b (diff) | |
download | openbsd-216bfd64deba6e82096b1370a70cd71e96ddba73.tar.gz openbsd-216bfd64deba6e82096b1370a70cd71e96ddba73.tar.bz2 openbsd-216bfd64deba6e82096b1370a70cd71e96ddba73.zip |
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@
-rw-r--r-- | src/lib/libc/stdlib/getopt.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index 06167cb7d6..82f74c2c1a 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 | |||
@@ -25,9 +25,9 @@ | |||
25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 25 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
26 | .\" SUCH DAMAGE. | 26 | .\" SUCH DAMAGE. |
27 | .\" | 27 | .\" |
28 | .\" $OpenBSD: getopt.3,v 1.40 2007/05/31 19:19:31 jmc Exp $ | 28 | .\" $OpenBSD: getopt.3,v 1.41 2009/04/12 23:13:36 okan Exp $ |
29 | .\" | 29 | .\" |
30 | .Dd $Mdocdate: May 31 2007 $ | 30 | .Dd $Mdocdate: April 12 2009 $ |
31 | .Dt GETOPT 3 | 31 | .Dt GETOPT 3 |
32 | .Os | 32 | .Os |
33 | .Sh NAME | 33 | .Sh NAME |
@@ -73,7 +73,9 @@ recognizes an option and argument | |||
73 | .Fl x Ar argument . | 73 | .Fl x Ar argument . |
74 | It does not matter to | 74 | It does not matter to |
75 | .Fn getopt | 75 | .Fn getopt |
76 | if a following argument has leading whitespace. | 76 | if a following argument has leading whitespace; except in the case where |
77 | the argument is optional, denoted with two colons, no leading whitespace | ||
78 | is permitted. | ||
77 | .Pp | 79 | .Pp |
78 | On return from | 80 | On return from |
79 | .Fn getopt , | 81 | .Fn getopt , |