steven.bethard@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.
On Mon, Apr 26, 2010 at 08:20:10AM -0400, Neal Becker wrote:
steven.bethard@gmail.com made a very nice module for me to enhance argparse called argparse_bool.py, which contains ConfigureAction. This will allow a
Would not it be a feature enhancement request against argparse.py itself? In that case, you might just file a bug against argparse at bugs.python.org. -- Senthil BOFH excuse #138: BNC (brain not connected)
Senthil Kumaran
On Mon, Apr 26, 2010 at 08:20:10AM -0400, Neal Becker wrote:
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
Would not it be a feature enhancement request against argparse.py itself? In that case, you might just file a bug against argparse at bugs.python.org.
I would argue that since argparse is now in the standard library, it should be primarily maintained on {bugs, svn}.python.org. We have enough synchronization problems with externally maintained modules. Regards Antoine.
On Apr 26, 2010, at 08:20 AM, Neal Becker wrote:
steven.bethard@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.
+1. This would be a very nice addition to argparse in the stdlib. -Barry
Sounds good to me (subject to arguing about spellings, case insensitivity, etc.). Just so it doesn't get lost, I created issue 8538 to track it. Neal Becker wrote:
steven.bethard@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.
------------------------------------------------------------------------
_______________________________________________ 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/eric%2Ba-python-dev%40true...
-- Eric.
participants (5)
-
Antoine Pitrou
-
Barry Warsaw
-
Eric Smith
-
Neal Becker
-
Senthil Kumaran