mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Fix option parsing bug for empty short options
This commit is contained in:
parent
e0aefc415d
commit
2a89b7bd1d
@ -10,7 +10,9 @@ def fancyopts(args, options, state):
|
||||
map['-'+s] = map['--'+l]=l
|
||||
state[l] = d
|
||||
dt[l] = type(d)
|
||||
if not d is None and not callable(d): s, l=s+':', l+'='
|
||||
if not d is None and not callable(d):
|
||||
if s: s += ':'
|
||||
if l: l += '='
|
||||
if s: short = short + s
|
||||
if l: long.append(l)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user