A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-April/099704.html below:

[Python-Dev] argparse suggestion

[Python-Dev] argparse suggestion [Python-Dev] argparse suggestionNeal 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

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