T
Tomi Silander
Hi,
this must have been asked 1000 times (or nobody is as stupid as me),
but since I could not find the answer, here is the question.
My program mitvit.py:
--------------
import optparse
optparse.OptionParser().parse_args()
--------------
gives me
$ python2.4 ./mitvit.py -1.1
usage: mitvit.py [options]
mitvit.py: error: no such option: -1.1
How is one supposed to give negative numbers as positional arguments
when using optparse?
ts.
this must have been asked 1000 times (or nobody is as stupid as me),
but since I could not find the answer, here is the question.
My program mitvit.py:
--------------
import optparse
optparse.OptionParser().parse_args()
--------------
gives me
$ python2.4 ./mitvit.py -1.1
usage: mitvit.py [options]
mitvit.py: error: no such option: -1.1
How is one supposed to give negative numbers as positional arguments
when using optparse?
ts.