Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 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 | 630e0b216192 |
children | b0dc459cd06c |
comparison
equal
deleted
inserted
replaced
3515:f536d1019c8f | 3516:5c57a5a17963 |
---|---|
561 # list all option lists | 561 # list all option lists |
562 opt_output = [] | 562 opt_output = [] |
563 for title, options in option_lists: | 563 for title, options in option_lists: |
564 opt_output.append(("\n%s:\n" % title, None)) | 564 opt_output.append(("\n%s:\n" % title, None)) |
565 for shortopt, longopt, default, desc in options: | 565 for shortopt, longopt, default, desc in options: |
566 if "DEPRECATED" in desc and not ui.verbose: continue | |
566 opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, | 567 opt_output.append(("%2s%s" % (shortopt and "-%s" % shortopt, |
567 longopt and " --%s" % longopt), | 568 longopt and " --%s" % longopt), |
568 "%s%s" % (desc, | 569 "%s%s" % (desc, |
569 default | 570 default |
570 and _(" (default: %s)") % default | 571 and _(" (default: %s)") % default |