Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'optparse': 0.09; 'subject:command': 0.09; 'subject:parsing': 0.09; 'subject:using': 0.09; 'xor': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'subject:options': 0.16; 'to:addr:web.de': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'stick': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'options': 0.25; 'subject: : ': 0.26; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'work.': 0.31; 'worked': 0.33; 'subject:the': 0.34; 'received:google.com': 0.35; 'thanks': 0.36; 'should': 0.36; 'pm,': 0.38; '26,': 0.68; 'hints': 0.68; 'default': 0.69; 'otten': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=hlqIitGyCO4cCMFG8zWeGWE1dPPZdoM8/3q4PrvYQRM=; b=T6VrRY4Y8Qs3UArONuKmPmvCvZ5oouWVGIlPEnYHoMGFw6R+Ejb5OliwwVrAgybU0Z uuVVdTciN13BDSlx9YXiHOnmx+lsxMblx2OFuve8+4PCz0p0noaikFzQRBzw6MrjVqEB ol/cacEgEAvSighCGepnjVTeZ3FriqgYYpP5UVCoNznzzX4fS9gmxaifFuYjlPk/2lE5 5P/SrtaEnrEy3ec2ioJrdhv3YNMpDLayI6GJIBswSTiXzJmnYTmt5JMZy2dL1Fr1v9H4 Xvbkx+/QUiHsUSyRuwPM6zThKMCVI3rGVPXzPJ3/U7U8ix4IqJB11FKYxOYY0dmr46dF +0BQ== MIME-Version: 1.0 X-Received: by 10.112.204.104 with SMTP id kx8mr2409661lbc.12.1393422120314; Wed, 26 Feb 2014 05:42:00 -0800 (PST) In-Reply-To: References: Date: Wed, 26 Feb 2014 19:12:00 +0530 Subject: Re: Python : parsing the command line options using optparse From: Ganesh Pal To: Peter Otten <__peter__@web.de> Content-Type: multipart/alternative; boundary=001a11c3c7f080ec0a04f34f5eca Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 56 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393422127 news.xs4all.nl 2890 [2001:888:2000:d::a6]:37916 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67093 --001a11c3c7f080ec0a04f34f5eca Content-Type: text/plain; charset=ISO-8859-1 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 --001a11c3c7f080ec0a04f34f5eca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


On Wed, Feb 26, 2014 at 4:57 PM, Peter Otten <__peter__@web.de><= /span> wrote:
If you stick with optparse just pass the options without '=3D'

-qXOR

and

-q XOR

should both work.



Thanks =A0Peter =A0and= =A0Simon for th= e hints=A0 it worked =A0: ) =A0without ' =3D'

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

Current Default Choice :

Choice: INODE
Choice: SET
Choice: 1



--001a11c3c7f080ec0a04f34f5eca--