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 |
|
|
106 | obj = defmap[name] | |
107 |
|
|
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