Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67093

Re: Python : parsing the command line options using optparse

References <CACT3xuWuV8omgE6oV0PNGfwdf-yrO3KPbjHtu=B+NHNuOhA_Jw@mail.gmail.com> <leig4s$ri5$1@ger.gmane.org> <CACT3xuUGtsER0B3xwAB2CqQ5Zb=v72w8+DQkaYz681xeSeJ2CQ@mail.gmail.com> <lekj1t$v7n$1@ger.gmane.org>
Date 2014-02-26 19:12 +0530
Subject Re: Python : parsing the command line options using optparse
From Ganesh Pal <ganesh1pal@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.7392.1393422127.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, Feb 26, 2014 at 4:57 PM, Peter Otten <__peter__@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python : parsing the command line options using optparse Ganesh Pal <ganesh1pal@gmail.com> - 2014-02-26 19:12 +0530

csiph-web