summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorokan <>2009-04-12 23:13:36 +0000
committerokan <>2009-04-12 23:13:36 +0000
commit216bfd64deba6e82096b1370a70cd71e96ddba73 (patch)
treed7222158eced7df47a322dd349069004d59b5fcc
parent81cc21e17f42ab47e48fc157c74e1cc50b0c174b (diff)
downloadopenbsd-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.38
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 .
74It does not matter to 74It does not matter to
75.Fn getopt 75.Fn getopt
76if a following argument has leading whitespace. 76if a following argument has leading whitespace; except in the case where
77the argument is optional, denoted with two colons, no leading whitespace
78is permitted.
77.Pp 79.Pp
78On return from 80On return from
79.Fn getopt , 81.Fn getopt ,