httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: [PATCH] Cleanup command line options (PR#2714)
Date Wed, 29 Jul 1998 12:41:07 GMT

In article <Pine.BSF.3.95q.980728135919.17089M-100000@valis.worldgate.com> you wrote:
> On Tue, 28 Jul 1998, Gregory A Lundberg wrote:

>> On Tue, 28 Jul 1998, Marc Slemko wrote:
>> 
>> > Read the bugdb for the PR.  You can't do that because getopt is defined as
>> > returning '?' so you no longer know invalid options.
>> 
>> getopt returns '?' for exactly the reason you seem to have trouble with. 
>> the idea is '-?' means "I need help" and isn't invalid.  If you want to
>> display some helpful text when an invalid option appears, why not do the
>> same help as '-?' and offer help to the user.

> Yea, ok.  That makes sense.  I guess I was confused by assuming what Ralph
> was saying about it not working was right.

Not quite correct. The -? works, of course. But it also prints an error
(getopt does this) which is confusing to some people.  And because OTOH its
also confusing that on -h one gets a totally unreadable 460 line output my
idea was to clean this up in one change. The -h does -? without the error and
the 460 line page comes with the capital one: -H.

> I really don't see the big deal with it either way though; it works just
> fine right now.  I'm not going to say anything more on this since it is
> too silly to be worth the waste of time. 

Sure, we can leave it as is. No problem. But please make 
this clear to the PR submitter, too.
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message