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


Groups > comp.lang.python > #62987

Argparse class method based instantiation

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jcasale@activenetwerx.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'python3': 0.07; 'imported': 0.09; 'subject:method': 0.09; 'exit.': 0.16; 'ignored?': 0.16; 'received:172.18.0': 0.16; 'subject:based': 0.16; 'subject:class': 0.16; 'switches': 0.16; 'workaround?': 0.16; 'thanks,': 0.17; 'to:name:python-list@python.org': 0.22; 'script': 0.25; 'switch': 0.26; 'subject:skip:i 10': 0.31; 'anyone': 0.31; 'class': 0.32; 'method': 0.36; 'charset:us-ascii': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'users': 0.40; 'received:unknown': 0.61; 'within': 0.65
X-Cloudmark-SP-Filtered true
X-Cloudmark-SP-Result v=1.1 cv=LEYBnznbHq3FhzR9LVFp1uvv3/Dy5AS/nulXTUPc3gs= c=1 sm=1 a=OduPncSVnQAA:10 a=7PYXob_7ZXMA:10 a=P90J6pEA2ccA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=oo7gZjRfZORCIlQfG5wA:9 a=CjuIK1q_8ugA:10 a=0_aZ1Ejpb6oA:10 a=hdHolvEnZXMA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
From "Joseph L. Casale" <jcasale@activenetwerx.com>
To "python-list@python.org" <python-list@python.org>
Subject Argparse class method based instantiation
Thread-Topic Argparse class method based instantiation
Thread-Index AQHPB9/uwgxktQf4JEGpoddt6T0Q6w==
Date Thu, 2 Jan 2014 17:29:59 +0000
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [172.18.0.4]
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4796.1388683833.18130.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388683833 news.xs4all.nl 2867 [2001:888:2000:d::a6]:38943
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62987

Show key headers only | View raw


I have an Python3 argparse implementation that is invoked as a method from an imported
class within a users script __main__.

When argparse is setup in __main__ instead, all the help switches produce help then exit.
When a help switch is passed based on the above implementation, they are ignored?

Anyone seen this and or know of a workaround?

Thanks,
jlc

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


Thread

Argparse class method based instantiation "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-01-02 17:29 +0000

csiph-web