getopt

John Machin sjmachin at lexicon.net
Tue Feb 10 20:25:44 EST 2009


On Feb 11, 12:12 pm, Matthew Sacks <ntw... at gmail.com> wrote:
> if anyone can have a look at this code and offer suggestions i would
> appreciate it.
> i am forced to use getopt, so i cant use something good like optparse
>
> passedArgs = sys.argv[1:]
> optlist, args = getopt.getopt(str(passedArgs), ["connectPassword=",

Dunno where you acquired the str() ... just lose it. Consider checking
with the documentation when something "does not work".

> "adminServerURL=", "action=", "targets=", "appDir="])
>
> for some reason this does not work in assigning args to opts.
>



More information about the Python-list mailing list