using getopt

Fernando Pérez fperez528 at yahoo.com
Mon Jun 3 21:30:15 CEST 2002


David Bear wrote:

> Found a couple of frustrating things with getopt.  I am writing a filter
> that will be called by lprng -- or other spool services.  rather than
> trying to code for every possible cmd line arg I may be given, in there a
> way to use getopt to grab just a few options that I care about and through
> the rest away?
 
getopt sucks. Period. Take a look at DPyGetOpt, which implements the 
Getopt::Long perl facilities. It's very very nice. I've also heard good 
things about optik, but haven't used it myself.

If you can't find DPyGetOpt (it's a bit hard to get) drop me a line.

Cheers,

f



More information about the Python-list mailing list