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