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.

Author Jeremiah.Jordan
Recipients Jeremiah.Jordan, Yaniv.Aknin, bethard, eric.araujo, eric.smith
Date 2010-08-09.21:28:40
SpamBayes Score 0.0021138561
Marked as misclassified No
Message-id <1281389322.15.0.112942360907.issue8538@psf.upfronthosting.co.za>
In-reply-to
Content
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 through to super, and then updating __call__ to check 'if value is None or value == []:' instead of the None.
History
Date User Action Args
2010-08-09 21:28:42Jeremiah.Jordansetrecipients: + Jeremiah.Jordan, bethard, eric.smith, eric.araujo, Yaniv.Aknin
2010-08-09 21:28:42Jeremiah.Jordansetmessageid: <1281389322.15.0.112942360907.issue8538@psf.upfronthosting.co.za>
2010-08-09 21:28:40Jeremiah.Jordanlinkissue8538 messages
2010-08-09 21:28:40Jeremiah.Jordancreate