##// END OF EJS Templates
additional fixes for issue436
Alexis S. L. Carvalho -
r3749:f9567a7f default
parent child Browse files
Show More
@@ -11,7 +11,8 b' def fancyopts(args, options, state):'
11 11 map['-'+s] = map['--'+l] = pl
12 12 state[pl] = d
13 13 dt[pl] = type(d)
14 if not d is None and not callable(d):
14 if (d is not None and d is not True and d is not False and
15 not callable(d)):
15 16 if s: s += ':'
16 17 if l: l += '='
17 18 if s: short = short + s
@@ -25,6 +26,7 b' def fancyopts(args, options, state):'
25 26 elif dt[map[opt]] is type(''): state[map[opt]] = arg
26 27 elif dt[map[opt]] is type([]): state[map[opt]].append(arg)
27 28 elif dt[map[opt]] is type(None): state[map[opt]] = True
29 elif dt[map[opt]] is type(False): state[map[opt]] = True
28 30
29 31 return args
30 32
@@ -2,5 +2,6 b''
2 2
3 3 hg init a
4 4 cd a
5 hg -v log -v
5 6 hg -v log -v x
6 7 true
General Comments 0
You need to be logged in to leave comments. Login now