From 7828c3fe21378fd6a11300004ea3baba3d4e4c83 Mon Sep 17 00:00:00 2001 From: dsl Date: Sat, 28 Nov 2009 20:36:45 +0000 Subject: [PATCH] Add a note telling people to use the shell getopts builtin. --- usr.bin/getopt/getopt.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/usr.bin/getopt/getopt.1 b/usr.bin/getopt/getopt.1 index f976154aba07..f166d47462eb 100644 --- a/usr.bin/getopt/getopt.1 +++ b/usr.bin/getopt/getopt.1 @@ -1,5 +1,5 @@ -.\" $NetBSD: getopt.1,v 1.17 2009/03/11 13:53:30 joerg Exp $ -.Dd November 9, 2000 +.\" $NetBSD: getopt.1,v 1.18 2009/11/28 20:36:45 dsl Exp $ +.Dd November 28, 2009 .Dt GETOPT 1 .Os .Sh NAME @@ -34,6 +34,11 @@ preceded by a .Dq \- and in its own shell argument; each option argument is also in its own shell argument. +.Pp +.Nm +should not be used in new scripts, use the shell builtin +.Nm getopts +instead. .Sh EXAMPLES The following code fragment shows how one might process the arguments for a command that can take the options