summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormillert <>2007-04-10 20:35:34 +0000
committermillert <>2007-04-10 20:35:34 +0000
commit5fe6b1a53d2c165a029bdbb82fd07a05f0beece8 (patch)
treeaf21dff465d5a2987661368ffc97f6d6e8705027 /src
parent266fea10f61028485df1b5efc9e8fe08970798c1 (diff)
downloadopenbsd-5fe6b1a53d2c165a029bdbb82fd07a05f0beece8.tar.gz
openbsd-5fe6b1a53d2c165a029bdbb82fd07a05f0beece8.tar.bz2
openbsd-5fe6b1a53d2c165a029bdbb82fd07a05f0beece8.zip
Support for optional args separated with whitespace was removed
some time ago--it caused too many problems.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/getopt.318
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3
index 796541184f..61babea046 100644
--- a/src/lib/libc/stdlib/getopt.3
+++ b/src/lib/libc/stdlib/getopt.3
@@ -25,7 +25,7 @@
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.38 2006/03/15 02:50:25 ray Exp $ 28.\" $OpenBSD: getopt.3,v 1.39 2007/04/10 20:35:34 millert Exp $
29.\" 29.\"
30.Dd December 17, 2002 30.Dd December 17, 2002
31.Dt GETOPT 3 31.Dt GETOPT 3
@@ -300,22 +300,6 @@ By default, a single dash causes
300to return \-1. 300to return \-1.
301.El 301.El
302.Pp 302.Pp
303Unlike
304.Tn GNU
305.Fn getopt ,
306.Ox
307does not permute the argument vector to allow non-options to be
308interspersed with options on the command line.
309Programs requiring this behavior should use
310.Xr getopt_long 3
311instead.
312Because of this (and unlike
313.Tn GNU ) ,
314the
315.Ox
316.Fn getopt
317supports optional arguments separated by whitespace.
318.Pp
319Historic 303Historic
320.Bx 304.Bx
321versions of 305versions of