diff options
author | 2007-07-03 12:06:07 +0000 | |
---|---|---|
committer | 2007-07-03 12:06:07 +0000 | |
commit | 5d7cf5cdd0555f4ed740f45af872eda324ac1f9e (patch) | |
tree | 239d82ede3c9fe60e2372aa0ef39a8d99e9a1d69 /lib/libc/stdlib | |
parent | both 'proto 50' and 'proto esp' must work in flow specifications (diff) | |
download | wireguard-openbsd-5d7cf5cdd0555f4ed740f45af872eda324ac1f9e.tar.xz wireguard-openbsd-5d7cf5cdd0555f4ed740f45af872eda324ac1f9e.zip |
from ginsbach@netbsd, -r1.18:
Document that getopt_long(3) can and will accept unique abbreviated long
option names. This feature has been present since getopt_long(3) was first
released in NetBSD 1.5. This is also standard GNU getopt_long(3) behavior.
ok millert
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/getopt_long.3 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3 index 78eb8dee65e..2bab9637341 100644 --- a/lib/libc/stdlib/getopt_long.3 +++ b/lib/libc/stdlib/getopt_long.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getopt_long.3,v 1.14 2007/05/31 19:19:31 jmc Exp $ +.\" $OpenBSD: getopt_long.3,v 1.15 2007/07/03 12:06:07 jmc Exp $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)getopt.3 8.5 (Berkeley) 4/27/95 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 3 2007 $ .Dt GETOPT_LONG 3 .Os .Sh NAME @@ -93,6 +93,11 @@ It is possible to combine these methods, providing for long options processing with short option equivalents for some options. Less frequently used options would be processed as long options only. .Pp +Abbreviated long option names are accepted when +.Fn getopt_long +processes long options if the abbreviation is unique. +An exact match is always preferred for a defined long option. +.Pp The .Fn getopt_long call requires a structure to be initialized describing the long |