command line arguments processing: an ugly lpr wrapper

Peter Hansen peter at engcorp.com
Sun Mar 16 22:41:51 EST 2003


morden wrote:
> 
> So, my question is:
> how to make the code a bit less igly
> and make it take arguments in format -Bfoo in addition to -B foo?

Use the getopt module?  Much simpler, handles the above
request.




More information about the Python-list mailing list