31 Jul
2007
31 Jul
'07
9:35 a.m.
A.M. Kuchling wrote:
On Mon, Jul 30, 2007 at 09:50:38AM -0400, Neal Becker wrote:
Subject says it all.
Why is boolean support needed, given that optparse has store_true and store_false actions? Example usage:
parser.add_option('--confirm', action='store_true', dest='confirm')
--amk
So you can do: --option=false Otherwise you have to do something like: (action='store_false', default=True) and use: --no-option which is OK sometimes, but why not allow a choice?