From 92657c3d56a069a090b68c27d500e3eafb4dfc0e Mon Sep 17 00:00:00 2001 From: millert <> Date: Tue, 10 Apr 2007 20:35:34 +0000 Subject: [PATCH] Support for optional args separated with whitespace was removed some time ago--it caused too many problems. --- src/lib/libc/stdlib/getopt.3 | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index 79654118..61babea0 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getopt.3,v 1.38 2006/03/15 02:50:25 ray Exp $ +.\" $OpenBSD: getopt.3,v 1.39 2007/04/10 20:35:34 millert Exp $ .\" .Dd December 17, 2002 .Dt GETOPT 3 @@ -300,22 +300,6 @@ By default, a single dash causes to return \-1. .El .Pp -Unlike -.Tn GNU -.Fn getopt , -.Ox -does not permute the argument vector to allow non-options to be -interspersed with options on the command line. -Programs requiring this behavior should use -.Xr getopt_long 3 -instead. -Because of this (and unlike -.Tn GNU ) , -the -.Ox -.Fn getopt -supports optional arguments separated by whitespace. -.Pp Historic .Bx versions of