diff options
| author | 2009-04-12 23:13:36 +0000 | |
|---|---|---|
| committer | 2009-04-12 23:13:36 +0000 | |
| commit | a4615ce8d87db6b5a498dc07b5fb5f8180e2daa0 (patch) | |
| tree | fccb412d48e1c7365a7adad6958f75c833d50feb /lib/libc/stdlib | |
| parent | regen (diff) | |
| download | wireguard-openbsd-a4615ce8d87db6b5a498dc07b5fb5f8180e2daa0.tar.xz wireguard-openbsd-a4615ce8d87db6b5a498dc07b5fb5f8180e2daa0.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@
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/getopt.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index 06167cb7d68..82f74c2c1a5 100644 --- a/lib/libc/stdlib/getopt.3 +++ b/lib/libc/stdlib/getopt.3 @@ -25,9 +25,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" 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 .Os .Sh NAME @@ -73,7 +73,9 @@ recognizes an option and argument .Fl x Ar argument . It does not matter to .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 On return from .Fn getopt , |
