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


Groups > comp.lang.python > #62987

Argparse class method based instantiation

From "Joseph L. Casale" <jcasale@activenetwerx.com>
Subject Argparse class method based instantiation
Date 2014-01-02 17:29 +0000
Newsgroups comp.lang.python
Message-ID <mailman.4796.1388683833.18130.python-list@python.org> (permalink)

Show all headers | 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