From 021b4e4e535912d83db7166ea8b208945f0e190f Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Thu, 27 May 1999 13:09:10 +0000 Subject: getopt(3) does not return -1 when encountering unrecognized options --- lib/libc/stdlib/getopt.3 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index 1697f58ec86..57d2c3668b8 100644 --- a/lib/libc/stdlib/getopt.3 +++ b/lib/libc/stdlib/getopt.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getopt.3,v 1.7 1999/05/23 14:11:03 aaron Exp $ +.\" $OpenBSD: getopt.3,v 1.8 1999/05/27 13:09:09 aaron Exp $ .\" .Dd April 19, 1994 .Dt GETOPT 3 @@ -121,8 +121,7 @@ The .Fn getopt function returns \-1 -when the argument list is exhausted, or a non-recognized -option is encountered. +when the argument list is exhausted. The interpretation of options in the argument list may be cancelled by the option .Ql -- -- cgit v1.2.3