Python : parsing the command line options using optparse

Ganesh Pal ganesh1pal at gmail.com
Wed Feb 26 08:42:00 EST 2014


On Wed, Feb 26, 2014 at 4:57 PM, Peter Otten <__peter__ at web.de> wrote:
>
> If you stick with optparse just pass the options without '='
>
> -qXOR
>
> and
>
> -q XOR
>
> should both work.
>
>

Thanks  Peter  and Simon for the hints  it worked  : )  without ' ='

# Python corrupt.py -o INODE -p /ifs/1.txt -q SET -f 1

Current Default Choice :

Choice: INODE
Choice: SET
Choice: 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140226/03d63df9/attachment.html>


More information about the Python-list mailing list