[Python-Dev] add bool type to optparse

A.M. Kuchling amk at amk.ca
Tue Jul 31 14:02:30 CEST 2007


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



More information about the Python-Dev mailing list