[stdlib-sig] should we try to add argparse?

Steven Bethard steven.bethard at gmail.com
Fri Sep 11 09:24:54 CEST 2009


On Thu, Sep 10, 2009 at 2:58 PM, Yuvgoog Greenle <ubershmekel at gmail.com> wrote:
> I just wrote pyopt http://code.google.com/p/pyopt/ because I think exposing
> functions to the command line is way too hard.
> If Steven Bethard and the argparse community agree, I would really
> appreciate a convenience method named "add_function" built into
> the ArgumentParser. add_function would automagically read the docstring and
> understand what are the arguments for a given function. I'm willing and
> motivated to do the work for this. Annotations-type-casting could be awesome
> as well, but I'm not greedy enough to ask.

Regardless of what happens for argparse in the standard library, if
you're willing to provide a patch to add this to argparse, I'd be
happy to review it and include it in argparse.

Steve
-- 
Where did you get that preposterous hypothesis?
Did Steve tell you that?
        --- The Hiphopopotamus


More information about the stdlib-sig mailing list