This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add ConfigureAction to argparse
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: bethard, devurandom, eric.smith
Priority: normal Keywords:

Created on 2010-04-26 17:36 by eric.smith, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
argparse_bool.py eric.smith, 2010-04-26 17:36
Messages (2)
msg104258 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-04-26 17:36
From a python-dev email from Neal Becker, copied here so it won't get lost.
----------------------------
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.
msg104264 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-04-26 17:46
Sorry for the dupes. My ISP keeps disconnecting, but apparently it was able to create this issue 3 times for me.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52783
2012-05-29 13:22:59devurandomsetnosy: + devurandom
2010-04-26 17:46:45eric.smithsetstatus: open -> closed
resolution: duplicate
messages: + msg104264
2010-04-26 17:36:32eric.smithcreate