The following reply was made to PR general/2714; it has been noted by GNATS.
From: Koga Youichirou <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: general/2714: Command line option '-?' doesn't work. Date: Tue, 28 Jul 1998 04:35:55 +0900 (JST) Marc Slemko <[EMAIL PROTECTED]>: > What do you mean by "error message"? > > I get: > > httpd: illegal option -- ? This line is error message of getopt(). "Ralf S. Engelschall" <[EMAIL PROTECTED]>: > Correct, but at least the error message is nasty. And the behavior that > getopt() really returns the "?" is not really portable I think, isn't it? I don't think its design is good, too. Probably the behavior was designed that expects help message for illegal options, or it doesn't take the trouble to return "?". > When one wants the usage list one doesn't expect an error ;-) My patch prevends an error when you use "-?"(as manual says). If you use illegal options, printing an error is right behavior, isn't it? -- Koga, Youichirou