##// END OF EJS Templates
Move aliases section in help below synopsis (issue362)...
Thomas Arendsen Hein -
r5783:28d9f8cd default
parent child Browse files
Show More
@@ -1214,7 +1214,11 b' def help_(ui, name=None, with_version=Fa'
1214 ui.write('\n')
1214 ui.write('\n')
1215 aliases, i = cmdutil.findcmd(ui, name, table)
1215 aliases, i = cmdutil.findcmd(ui, name, table)
1216 # synopsis
1216 # synopsis
1217 ui.write("%s\n\n" % i[2])
1217 ui.write("%s\n" % i[2])
1218
1219 # aliases
1220 if not ui.quiet and len(aliases) > 1:
1221 ui.write(_("\naliases: %s\n") % ', '.join(aliases[1:]))
1218
1222
1219 # description
1223 # description
1220 doc = i[0].__doc__
1224 doc = i[0].__doc__
@@ -1222,13 +1226,9 b' def help_(ui, name=None, with_version=Fa'
1222 doc = _("(No help text available)")
1226 doc = _("(No help text available)")
1223 if ui.quiet:
1227 if ui.quiet:
1224 doc = doc.splitlines(0)[0]
1228 doc = doc.splitlines(0)[0]
1225 ui.write("%s\n" % doc.rstrip())
1229 ui.write("\n%s\n" % doc.rstrip())
1226
1230
1227 if not ui.quiet:
1231 if not ui.quiet:
1228 # aliases
1229 if len(aliases) > 1:
1230 ui.write(_("\naliases: %s\n") % ', '.join(aliases[1:]))
1231
1232 # options
1232 # options
1233 if i[1]:
1233 if i[1]:
1234 option_lists.append((_("options:\n"), i[1]))
1234 option_lists.append((_("options:\n"), i[1]))
@@ -211,6 +211,8 b' options:'
211 use "hg -v help diff" to show global options
211 use "hg -v help diff" to show global options
212 hg status [OPTION]... [FILE]...
212 hg status [OPTION]... [FILE]...
213
213
214 aliases: st
215
214 show changed files in the working directory
216 show changed files in the working directory
215
217
216 Show status of files in the repository. If names are given, only
218 Show status of files in the repository. If names are given, only
@@ -235,8 +237,6 b' show changed files in the working direct'
235 I = ignored (not shown by default)
237 I = ignored (not shown by default)
236 = the previous added file was copied from here
238 = the previous added file was copied from here
237
239
238 aliases: st
239
240 options:
240 options:
241
241
242 -A --all show status of all files
242 -A --all show status of all files
General Comments 0
You need to be logged in to leave comments. Login now