On Wed, Sep 30, 2009 at 09:21, Vinay Sajip <vinay_sa...@yahoo.co.uk> wrote: > Brett Cannon <brett <at> python.org> writes: > >> Obviously if one of the getopt supporters has a better way of doing >> this then please speak up. > > I'm not a getopt supporter per se - I'm +1 for argparse - but Opster provides > some nice syntax sugar on top of getopt, and can be seen here: > > http://blogg.ingspree.net/blog/2009/09/14/opster/ > > I've contacted Steven about a similar approach for argparse, and we're waiting > for Yuvgoog's work on argparse(func) to be done to see if there's a feasible > similar approach.
I am reluctant to jump on these argument parsing decorators until they have existed outside the standard library for a while and have settled down as I suspect some people want to use annotations to do type conversion/checking, others don't, etc. -Brett _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com