[issue8538] Add ConfigureAction to argparse

2010-08-09 Thread Jeremiah Jordan
Jeremiah Jordan added the comment: I think this should be updated so that nargs=0 is allowed, so that you can only do --foo/--no-foo and don't clutter up the help/interface with --foo [FOO] --no-foo=[FOO] You can do this by adding nargs to the ConfigureAction.__init__ and passing that throug

[issue8538] Add ConfigureAction to argparse

2010-07-17 Thread Éric Araujo
Éric Araujo added the comment: Some useful tips to make patches: http://www.python.org/dev/patches/ -- ___ Python tracker ___ ___ Pyth

[issue8538] Add ConfigureAction to argparse

2010-06-13 Thread Éric Araujo
Éric Araujo added the comment: I think you can go ahead and produce a patch. Don’t start splitting argparse into a package now though, this is a sensible decision IMO but has to be agreed by the maintainer; just add FlagAction and ConfigureAction to argparse for now. -- stage: -> nee

[issue8538] Add ConfigureAction to argparse

2010-05-12 Thread Yaniv Aknin
Yaniv Aknin added the comment: I'm looking into making a patch from this for py3k, and have the following observations: 1. I agree with merwok, at the moment the monolithic ConfigureAction is a bit excessive for most uses (other than maybe emulating ./Configure...). I vote we split it to Fla

[issue8538] Add ConfigureAction to argparse

2010-05-05 Thread Éric Araujo
Éric Araujo added the comment: Are we sure we want three or four ways to spell the same thing? --foo and --no-foo seem a useful couple to me, and --with-foo/--without-foo cater to different use cases. Perhaps it would be ok to have a SwitchAction (or FlagAction) for --thing/--no-hing and one

[issue8538] Add ConfigureAction to argparse

2010-05-02 Thread Yaniv Aknin
Changes by Yaniv Aknin : -- nosy: +Yaniv.Aknin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8538] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
Changes by Eric Smith : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8538] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
New submission from Eric Smith : >From a python-dev email from Neal Becker, copied here so it won't get lost. steven.beth...@gmail.com made a very nice module for me to enhance argparse called argparse_bool.py, which contains ConfigureAction. This will allow a bool