From owner-cvs-all Fri Jun 25 0:21:38 1999 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 4F06414DCC; Fri, 25 Jun 1999 00:21:34 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id BAA81122; Fri, 25 Jun 1999 01:21:33 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id BAA42199; Fri, 25 Jun 1999 01:20:12 -0600 (MDT) Message-Id: <199906250720.BAA42199@harmony.village.org> To: hm@hcs.de 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: des@flood.ping.uio.no, bde@zeta.org.au, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org In-reply-to: Your message of "Fri, 25 Jun 1999 09:16:20 +0200." References: Date: Fri, 25 Jun 1999 01:20:12 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message Hellmuth Michaelis writes: : This is true, but we're talking about a fundamental feature of every : interactive program - getting basic help (and no, not man prog .. ;-) ). : : IMHO, the flag which is used to get help should not bring an error message : back to the user. Even when the user used an illegal option to get the help? While nearly all programs in the tree have a usage message, it is given only in response to a mal-formed command line. : > I personally think encouraging -? is dangerous given its potential : > danger, as others have pointed out : : Good. I can accept that and switch to using another flag for getting : help - BUT i think also that FreeBSD should use this flag consistently : for all or most of the programs and it should be documented in a well : known and easy to find place. : : What should the help flag character be ? I don't know. One thing that you can do is start your option string with :, so no errors happen. Another is to set opterr to 0. Since I don't have a good answer, I'm thinking of just backing out all the ? changes I've made (except for pkg, which others are working on). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message