Why is the argparse module so inflexible?

Grant Edwards invalid at invalid.invalid
Thu Jun 27 18:19:02 EDT 2013


On 2013-06-27, Jason Swails <jason.swails at 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!!



More information about the Python-list mailing list