Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 1999 01:20:12 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        hm@hcs.de
Cc:        des@flood.ping.uio.no, bde@zeta.org.au, cvs-all@FreeBSD.org, cvs-committers@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 
Message-ID:  <199906250720.BAA42199@harmony.village.org>
In-Reply-To: Your message of "Fri, 25 Jun 1999 09:16:20 %2B0200." <m10xQDk-0000fqC@hcswork.hcs.de> 
References:  <m10xQDk-0000fqC@hcswork.hcs.de>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <m10xQDk-0000fqC@hcswork.hcs.de> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906250720.BAA42199>