changeset 3516:5c57a5a17963

Hide deprecated flags in help unless verbose
author Matt Mackall <mpm@selenic.com>
date Wed, 25 Oct 2006 17:38:17 -0500
parents f536d1019c8f
children b0dc459cd06c
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Oct 25 16:45:39 2006 -0500
+++ b/mercurial/commands.py	Wed Oct 25 17:38:17 2006 -0500
@@ -563,6 +563,7 @@
     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,