Parse command line options
Tim Daneliuk
tundra at tundraware.com
Mon Apr 18 05:07:27 EDT 2005
hue wrote:
<SNIP>
> try:
>
> opts,args = getopt.getopt(sys.argv[1:], 'n:t:h:i:o:',
^^^^^^^
This may be the problem. As I recall, a colon following an option
indicates that it is followed by an argument as in "-f filename".
For options that are just switches (that take no argument), I believe
they should appear in the list above *without* the colon suffix...
--
----------------------------------------------------------------------------
Tim Daneliuk tundra at tundraware.com
PGP Key: http://www.tundraware.com/PGP/
More information about the Python-list
mailing list