Show More
@@ -130,8 +130,13 b' def commandprinter(ui, cmdtable, section' | |||||
130 | d = get_cmd(h[f], cmdtable) |
|
130 | d = get_cmd(h[f], cmdtable) | |
131 | sectionfunc(ui, d['cmd']) |
|
131 | sectionfunc(ui, d['cmd']) | |
132 | # synopsis |
|
132 | # synopsis | |
133 | ui.write("``%s``\n" % d['synopsis'].replace("hg ","", 1)) |
|
133 | ui.write("::\n\n") | |
134 | ui.write("\n") |
|
134 | synopsislines = d['synopsis'].splitlines() | |
|
135 | for line in synopsislines: | |||
|
136 | # some commands (such as rebase) have a multi-line | |||
|
137 | # synopsis | |||
|
138 | ui.write(" %s\n" % line.replace("hg ","", 1)) | |||
|
139 | ui.write('\n') | |||
135 | # description |
|
140 | # description | |
136 | ui.write("%s\n\n" % d['desc'][1]) |
|
141 | ui.write("%s\n\n" % d['desc'][1]) | |
137 | # options |
|
142 | # options |
General Comments 0
You need to be logged in to leave comments.
Login now