comparison mercurial/fancyopts.py @ 515:03f27b1381f9

Whitespace cleanups -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Whitespace cleanups manifest hash: ac954bc3a4f034c12638a259ecd65841f5b63c5c -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCwuubywK+sNU5EO8RAluIAJ98XQpNdZUpSmYKgDmrMRlbL76ZzQCfes0t rknNUN/PhtyA4bzL646dOz4= =UyCE -----END PGP SIGNATURE-----
author mpm@selenic.com
date Wed, 29 Jun 2005 10:42:35 -0800
parents 11d64332a1cb
children f9ad1a2c72eb
comparison
equal deleted inserted replaced
514:874e577e332e 515:03f27b1381f9
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 map['-'+s] = map['--'+l]=l
11 state[l] = d 11 state[l] = d
12 dt[l] = type(d) 12 dt[l] = type(d)
13 if not d is None and not callable(d): s, l=s+':', l+'=' 13 if not d is None and not callable(d): s, l=s+':', l+'='
14 if s: short = short + s 14 if s: short = short + s
15 if l: long.append(l) 15 if l: long.append(l)
16 16
17 if os.environ.has_key("HG_OPTS"): 17 if os.environ.has_key("HG_OPTS"):
18 args = os.environ["HG_OPTS"].split() + args 18 args = os.environ["HG_OPTS"].split() + args