Show More
@@ -9,7 +9,10 b' def fancyopts(args, options, state):' | |||
|
9 | 9 | for s, l, d, c in options: |
|
10 | 10 | pl = l.replace('-', '_') |
|
11 | 11 | map['-'+s] = map['--'+l] = pl |
|
12 | state[pl] = d | |
|
12 | if isinstance(d, list): | |
|
13 | state[pl] = d[:] | |
|
14 | else: | |
|
15 | state[pl] = d | |
|
13 | 16 | dt[pl] = type(d) |
|
14 | 17 | if (d is not None and d is not True and d is not False and |
|
15 | 18 | not callable(d)): |
General Comments 0
You need to be logged in to leave comments.
Login now