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: 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" To: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 I have an Python3 argparse implementation that is invoked as a method from = an imported=0A= class within a users script __main__.=0A= =0A= When argparse is setup in __main__ instead, all the help switches produce h= elp then exit.=0A= When a help switch is passed based on the above implementation, they are ig= nored?=0A= =0A= Anyone seen this and or know of a workaround?=0A= =0A= Thanks,=0A= jlc=0A= =0A=