[Python-Dev] argparse suggestion

Neal Becker ndbecker2 at gmail.com
Mon Apr 26 14:20:10 CEST 2010


steven.bethard at gmail.com made a very nice module for me to enhance argparse 
called argparse_bool.py, which contains ConfigureAction.  This will allow a 
boolean value to be set very like the gnu configure style:

--foo
--with-foo
--without-foo
--no-foo
--foo=yes
--foo=no

I've been happily using it, and I think it would be of sufficient general 
interest to include it with the standard library.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: argparse_bool.py
Type: text/x-python
Size: 2366 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100426/3a897cd7/attachment.py>


More information about the Python-Dev mailing list