From 49b8c7e7da7fa3a4f3c6092cf0bfdb1c1de863e8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 5 Dec 2009 01:10:01 -0500 Subject: [PATCH] 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: --- becommands/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2