projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6930042
)
Set boolean options default to False in becommands/list.py
author
W. Trevor King
<wking@drexel.edu>
Sat, 5 Dec 2009 06:10:01 +0000
(
01:10
-0500)
committer
W. 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
patch
|
blob
|
history
diff --git
a/becommands/list.py
b/becommands/list.py
index 47117890280910b02e9eb1d3285fac09dc5cab7a..2749228c7d0457339138e16add507d5b0ae3d22f 100644
(file)
--- 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