18 > f = file('showoptlist.py', 'w'); f.write("""# encoding: utf-8 |
18 > f = file('showoptlist.py', 'w'); f.write("""# encoding: utf-8 |
19 > from mercurial import registrar |
19 > from mercurial import registrar |
20 > cmdtable = {} |
20 > cmdtable = {} |
21 > command = registrar.command(cmdtable) |
21 > command = registrar.command(cmdtable) |
22 > |
22 > |
23 > @command('showoptlist', |
23 > @command(b'showoptlist', |
24 > [('s', 'opt1', '', 'short width' + ' %(s)s' * 8, '%(s)s'), |
24 > [('s', 'opt1', '', 'short width' + ' %(s)s' * 8, '%(s)s'), |
25 > ('m', 'opt2', '', 'middle width' + ' %(m)s' * 8, '%(m)s'), |
25 > ('m', 'opt2', '', 'middle width' + ' %(m)s' * 8, '%(m)s'), |
26 > ('l', 'opt3', '', 'long width' + ' %(l)s' * 8, '%(l)s')], |
26 > ('l', 'opt3', '', 'long width' + ' %(l)s' * 8, '%(l)s')], |
27 > '') |
27 > '') |
28 > def showoptlist(ui, repo, *pats, **opts): |
28 > def showoptlist(ui, repo, *pats, **opts): |