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, eric.smith
Priority: normal Keywords:

Created on 2010-04-26 17:38 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:38
Messages (1)
msg104260 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-04-26 17:38
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.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52785
2010-04-26 17:38:44eric.smithsetstatus: open -> closed
resolution: duplicate
2010-04-26 17:38:10eric.smithcreate