Subject: Re: using getopt_long (was Re: Bluetooth update)
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 12/18/2005 20:16:32
>>> What I don't get is what's wrong with "-requires" and
>>> "-required-by".  But maybe *I*'m just old and slow.
>> I guess that would be equivalent to -r -e -q (etc.), [...]

> while ((opt = getopt(argc, argv, "r:")) != -1) {
> }

> This looks funny. :)

It does.  But there is no reason to do it that way, unless you've
managed to get stuck in a "MUST MUST MUSTMUSTMUST use getopt()"
mindset.  In which case, well, yes, you will have certain problems; for
example, you will be crippling the range of possible command-line
interfaces you can write.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B