Mercurial > hg
comparison doc/gendoc.py @ 13345:b8214d871338
doc: Capitalize the "options" header of mercurial commands
author | Javi Merino <cibervicho@gmail.com> |
---|---|
date | Sat, 05 Feb 2011 14:37:25 +0000 |
parents | 6b8d2ee24ce2 |
children | d5b525697ddb |
comparison
equal
deleted
inserted
replaced
13344:6367459decf7 | 13345:b8214d871338 |
---|---|
141 ui.write("%s\n\n" % d['desc'][1]) | 141 ui.write("%s\n\n" % d['desc'][1]) |
142 # options | 142 # options |
143 opt_output = list(d['opts']) | 143 opt_output = list(d['opts']) |
144 if opt_output: | 144 if opt_output: |
145 opts_len = max([len(line[0]) for line in opt_output]) | 145 opts_len = max([len(line[0]) for line in opt_output]) |
146 ui.write(_("options:\n\n")) | 146 ui.write(_("Options:\n\n")) |
147 for optstr, desc in opt_output: | 147 for optstr, desc in opt_output: |
148 if desc: | 148 if desc: |
149 s = "%-*s %s" % (opts_len, optstr, desc) | 149 s = "%-*s %s" % (opts_len, optstr, desc) |
150 else: | 150 else: |
151 s = optstr | 151 s = optstr |