From owner-cvs-all Sun Sep 3 20:49:25 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E7D3137B422; Sun, 3 Sep 2000 20:49:22 -0700 (PDT) Received: (from imp@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA41015; Sun, 3 Sep 2000 20:49:22 -0700 (PDT) (envelope-from imp@FreeBSD.org) Message-Id: <200009040349.UAA41015@freefall.freebsd.org> From: Warner Losh Date: Sun, 3 Sep 2000 20:49:22 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdlib getopt.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG imp 2000/09/03 20:49:22 PDT Modified files: lib/libc/stdlib getopt.c Log: Don't print an error message if the bad option is '?'. This has been in my tree for a long time. bde reviewed this once upon a time and said it was OK, iirc. This also obviates the need to put ? in the optstring argument to preclude the extra warning message which some people think confuses users. When I made my getopt cleanups of a long time ago, this was the compromise reached. I just neglected to commit it until now. Revision Changes Path 1.3 +2 -2 src/lib/libc/stdlib/getopt.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message