Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49347
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Why is the argparse module so inflexible? |
| Date | 2013-06-27 22:19 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <kqidom$os7$1@reader2.panix.com> (permalink) |
| References | (1 earlier) <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> |
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