Hide deprecated flags in help unless verbose
authorMatt Mackall <mpm@selenic.com>
Wed, 25 Oct 2006 17:38:17 -0500
changeset 3519 5c57a5a17963
parent 3518 f536d1019c8f
child 3520 b0dc459cd06c
Hide deprecated flags in help unless verbose
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -563,6 +563,7 @@ def help_(ui, name=None, with_version=Fa
     for title, options in option_lists:
         opt_output.append(("\n%s:\n" % title, None))
         for shortopt, longopt, default, desc in options:
+            if "DEPRECATED" in desc and not ui.verbose: continue
             opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt,
                                           longopt and " --%s" % longopt),
                                "%s%s" % (desc,