From: W. Trevor King Date: Sat, 5 Dec 2009 06:10:01 +0000 (-0500) Subject: Set boolean options default to False in becommands/list.py X-Git-Tag: 1.0.0~59^2~65 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=49b8c7e7da7fa3a4f3c6092cf0bfdb1c1de863e8;p=be.git Set boolean options default to False in becommands/list.py Otherwise they default to None. It doesn't matter at the moment, since all the comparisons seem to be if options.XYZ == True: but this protects against confusion in the future if someone tries if options.XYZ == False: --- diff --git a/becommands/list.py b/becommands/list.py index 4711789..2749228 100644 --- a/becommands/list.py +++ b/becommands/list.py @@ -196,7 +196,7 @@ def get_parser(): long = "--%s" % s[1] help = s[2] parser.add_option(short, long, action="store_true", - dest=attr, help=help) + dest=attr, help=help, default=False) return parser