Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 1999 17:26:04 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        hm@hcs.de, imp@FreeBSD.org
Cc:        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:  <199906240726.RAA29454@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>   	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




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