##// END OF EJS Templates
help: give hint about 'hg help -e' when appropriate...
Martin Geisler -
r14285:aa64a87b default
parent child Browse files
Show More
@@ -2223,6 +2223,18 b' def help_(ui, name=None, with_version=Fa'
2223 2223
2224 2224 addglobalopts(False)
2225 2225
2226 # check if this command shadows a non-trivial (multi-line)
2227 # extension help text
2228 try:
2229 mod = extensions.find(name)
2230 doc = gettext(mod.__doc__) or ''
2231 if '\n' in doc.strip():
2232 msg = _('use "hg help -e %s" to show help for '
2233 'the %s extension') % (name, name)
2234 ui.write('\n%s\n' % msg)
2235 except KeyError:
2236 pass
2237
2226 2238 def helplist(header, select=None):
2227 2239 h = {}
2228 2240 cmds = {}
@@ -254,6 +254,8 b' Extension module help vs command help:'
254 254 compared to the working directory, and, when no revisions are specified,
255 255 the working directory files are compared to its parent.
256 256
257 use "hg help -e extdiff" to show help for the extdiff extension
258
257 259 options:
258 260
259 261 -p --program CMD comparison program to run
General Comments 0
You need to be logged in to leave comments. Login now