Set boolean options default to False in becommands/list.py
authorW. Trevor King <wking@drexel.edu>
Sat, 5 Dec 2009 06:10:01 +0000 (01:10 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 5 Dec 2009 06:10:01 +0000 (01:10 -0500)
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

index 47117890280910b02e9eb1d3285fac09dc5cab7a..2749228c7d0457339138e16add507d5b0ae3d22f 100644 (file)
@@ -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