Barry Warsaw wrote: > On Sep 15, 2009, at 2:41 PM, Paul Moore wrote: > >> MAL pointed out http://code.activestate.com/recipes/573441/ - extended >> optparse to allow definition of required options. Given that one of >> the requirements that argparse is claimed to meet where optparse >> doesn't is supporting required arguments, how come this simple recipe >> hasn't been incorporated into optparse? > > That's an excellent question which kind of says something about people's > enthusiasm for maintaining optparse, eh?
It says something about the apparent importance of this particular feature in an argument parsing module ;-) Seriously, I wouldn't expect an argument parsing tool to do any complicated option dependency checking for me. That's something you do after having parsed the command line and it's likely different for every single script that needs such checks. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Sep 15 2009) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try our new mxODBC.Connect Python Database Interface for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 http://www.egenix.com/company/contact/ _______________________________________________ stdlib-sig mailing list stdlib-sig@python.org http://mail.python.org/mailman/listinfo/stdlib-sig