On 2005-04-06, Tomi Silander <[EMAIL PROTECTED]> wrote:
> Grant Edwards wrote:
>
>> On 2005-04-05, Tomi Silander <[EMAIL PROTECTED]> wrote:
>
>>>How is one supposed to give negative numbers as positional
>>>arguments when using optparse?
>>
>> ./mitvit.py -- -1.1
>
> this works.
Yes, I know. :)
Grant Edwards wrote:
On 2005-04-05, Tomi Silander <[EMAIL PROTECTED]> wrote:
How is one supposed to give negative numbers as positional arguments
when using optparse?
./mitvit.py -- -1.1
Thank you,
this works. I saw it in the source, but apparently did not properly pay
attention; all the args
On 2005-04-05, Tomi Silander <[EMAIL PROTECTED]> wrote:
> 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.
[...]
> $ python2.4 ./mitvit.py -1.1
[optparse error]
> How is one supposed to give negative numbers as
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 [opti