Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/fancyopts.py @ 1543:93a9298367e0
Merge with Thomas Waldmann
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 14 Nov 2005 15:09:34 +0100 |
parents | bf4e7ef08741 |
children | eb0b4a2d70a9 |
comparison
equal
deleted
inserted
replaced
1539:5e47e42b14ba | 1543:93a9298367e0 |
---|---|
1 import getopt | 1 import getopt |
2 | 2 |
3 def fancyopts(args, options, state): | 3 def fancyopts(args, options, state): |
4 long=[] | 4 long = [] |
5 short='' | 5 short = '' |
6 map={} | 6 map = {} |
7 dt={} | 7 dt = {} |
8 | 8 |
9 for s, l, d, c in options: | 9 for s, l, d, c in options: |
10 pl = l.replace('-', '_') | 10 pl = l.replace('-', '_') |
11 map['-'+s] = map['--'+l] = pl | 11 map['-'+s] = map['--'+l] = pl |
12 state[pl] = d | 12 state[pl] = d |