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>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4