getopt & single-letter options with parameters

Nick Sabalausky a at a.a
Sun Aug 8 10:17:35 PDT 2010


"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
news:i3kpsi$rod$1 at digitalmars.com...
>
> ./prog -ofilename

That being allowed at all kind of bugs me. I realize this probably isn't a 
particularly common problem in practice, but suppose you have:

-o<filename>
-of

And the user uses "-o" with a file named "f":

theapp -of  // Do what now?

Or,

-o<filename>
-of<filename>

theapp -ofabc  // "-o fabc" or "-of abc"?

The whole possibility kinda makes me nervous.




More information about the Digitalmars-d mailing list