[issue8538] Add ConfigureAction to argparse

Eric Smith report at bugs.python.org
Mon Apr 26 19:38:07 CEST 2010


New submission from Eric Smith <eric at trueblade.com>:

>From a python-dev email from Neal Becker, copied here so it won't get lost.
----------------------------
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.

----------
components: Library (Lib)
files: argparse_bool.py
messages: 104259
nosy: bethard, eric.smith
severity: normal
status: open
title: Add ConfigureAction to argparse
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file17100/argparse_bool.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8538>
_______________________________________


More information about the Python-bugs-list mailing list