How to move optparse from main to function?

Bob bob.python at yahoo.com
Thu Feb 23 15:30:05 EST 2006


Yes the documentation is helpful, but I wouldn't have been able to do
what you did in your code by just looking at section 6.21.2.9. I
thought I could put "parser = parserSetup()" and "(options, args) =
parser.parse_args()" in the function. Thanks for helping out with that!




More information about the Python-list mailing list