##// END OF EJS Templates
help: define list of keywords that should be excluded from non-verbose output...
Yuya Nishihara -
r26369:4799b5c4 default
parent child Browse files
Show More
@@ -14,6 +14,13 b' import encoding, util, minirst'
14 14 import cmdutil
15 15 import hgweb.webcommands as webcommands
16 16
17 _exclkeywords = [
18 "DEPRECATED",
19 "EXPERIMENTAL",
20 _("DEPRECATED"),
21 _("EXPERIMENTAL"),
22 ]
23
17 24 def listexts(header, exts, indent=1, showdeprecated=False):
18 25 '''return a text listing of the given extensions'''
19 26 rst = []
@@ -43,9 +50,7 b' def optrst(header, options, verbose):'
43 50 shortopt, longopt, default, desc = option
44 51 optlabel = _("VALUE") # default label
45 52
46 if not verbose and ("DEPRECATED" in desc or _("DEPRECATED") in desc or
47 "EXPERIMENTAL" in desc or
48 _("EXPERIMENTAL") in desc):
53 if not verbose and any(w in desc for w in _exclkeywords):
49 54 continue
50 55
51 56 so = ''
General Comments 0
You need to be logged in to leave comments. Login now