Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49347
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news1.as3257.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.190.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!panix!not-for-mail |
|---|---|
| From | Grant Edwards <invalid@invalid.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: Why is the argparse module so inflexible? |
| Date | Thu, 27 Jun 2013 22:19:02 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 19 |
| Message-ID | <kqidom$os7$1@reader2.panix.com> (permalink) |
| References | <51CC35F4.3040609@gmail.com> <kqhusi$je5$1@ger.gmane.org> <51CC8205.5060906@davea.name> <kqi0s8$a5d$1@ger.gmane.org> <51CC897E.5000702@stoneleaf.us> <mailman.3941.1372368609.3114.python-list@python.org> |
| NNTP-Posting-Host | dsl.comtrol.com |
| X-Trace | reader2.panix.com 1372371542 25479 64.122.56.22 (27 Jun 2013 22:19:02 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Thu, 27 Jun 2013 22:19:02 +0000 (UTC) |
| User-Agent | slrn/1.0.1 (Linux) |
| Xref | csiph.com comp.lang.python:49347 |
Show key headers only | View raw
On 2013-06-27, Jason Swails <jason.swails@gmail.com> wrote:
> He _is_ using cmd. He's subclassed cmd.Cmd and trying to use
> argparse to handle argument parsing in the Cmd.precmd method to
> preprocess the user input.
[...]
> Having subclassed cmd.Cmd myself in one of my programs and written my
> own argument parsing class to service it, I can appreciate what the
> OP is trying to do (and it's clever IMO).
Unfortunately, when writing software, being "clever" turns out to be A
Bad Thing(tm) as often as not. ;)
--
Grant Edwards grant.b.edwards Yow! ... I want to perform
at cranial activities with
gmail.com Tuesday Weld!!
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Why is the argparse module so inflexible? Jason Swails <jason.swails@gmail.com> - 2013-06-27 17:30 -0400
Re: Why is the argparse module so inflexible? Grant Edwards <invalid@invalid.invalid> - 2013-06-27 22:19 +0000
Re: Why is the argparse module so inflexible? Chris Angelico <rosuav@gmail.com> - 2013-06-28 08:33 +1000
csiph-web