Author: justi9
Date: 2009-07-20 15:41:30 -0400 (Mon, 20 Jul 2009)
New Revision: 3513
Modified:
mgmt/trunk/parsley/python/parsley/command.py
Log:
Count flags with no args as boolean trues
Modified: mgmt/trunk/parsley/python/parsley/command.py
===================================================================
--- mgmt/trunk/parsley/python/parsley/command.py 2009-07-20 13:53:19 UTC (rev 3512)
+++ mgmt/trunk/parsley/python/parsley/command.py 2009-07-20 19:41:30 UTC (rev 3513)
@@ -70,7 +70,7 @@
def find_opt(key):
try:
opt = self.options_by_param[key]
- opts[opt.name] = None
+ opts[opt.name] = True
return opt
except KeyError:
msg = "Option '%s' is unrecognized" % key
Show replies by date