##// END OF EJS Templates
fancyopts: allow all callable as default parameter value...
introom -
r25563:69e8384a default
parent child Browse files
Show More
@@ -103,8 +103,9 b' def fancyopts(args, options, state, gnu='
103 # transfer result to state
103 # transfer result to state
104 for opt, val in opts:
104 for opt, val in opts:
105 name = argmap[opt]
105 name = argmap[opt]
106 t = type(defmap[name])
106 obj = defmap[name]
107 if t is type(fancyopts):
107 t = type(obj)
108 if callable(obj):
108 state[name] = defmap[name](val)
109 state[name] = defmap[name](val)
109 elif t is type(1):
110 elif t is type(1):
110 try:
111 try:
General Comments 0
You need to be logged in to leave comments. Login now