From owner-cvs-all Thu Jun 24 0:26:15 1999 Delivered-To: cvs-all@freebsd.org Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (Postfix) with ESMTP id 5C4CF14A13; Thu, 24 Jun 1999 00:26:06 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id RAA29454; Thu, 24 Jun 1999 17:26:04 +1000 Date: Thu, 24 Jun 1999 17:26:04 +1000 From: Bruce Evans Message-Id: <199906240726.RAA29454@godzilla.zeta.org.au> To: hm@hcs.de, imp@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/i4b/isdnd main.c src/usr.sbin/i4b/isdndebug main.c src/usr.sbin/i4b/isdndecode main.c src/usr.s Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >> o getopt returns '?' for characters it doesn't know about, so >> don't include them in the getopt options string. > >Including '?' in the getopt options string is intentional, because - last >time i checked - using "programname -?" produces an output, where getopt >says that "-?" is an invalid option. This is IMHO false in that "-?" is >a valid option to display the usage string(s). "-?" is an invalid option that can be (ab)used to display the usage message. It is clearly invalid for the i4b programs because none of the i4b man pages document it :-). Documenting it in all man pages wouldn't be useful. getopt actually says that "-?" is an illegal option. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message