~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_man.py

  • Committer: Aaron Bentley
  • Date: 2007-08-24 19:27:23 UTC
  • mto: (1551.19.24 Aaron's mergeable stuff)
  • mto: This revision was merged to the branch mainline in revision 2756.
  • Revision ID: abentley@panoramicfeedback.com-20070824192723-q3iryq0vbbd3v954
Man page doesn't list hidden options (#131667)

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        option_str = "\nOptions:\n"
113
113
        for option_name, option in sorted(options.items()):
114
114
            for name, short_name, argname, help in option.iter_switches():
 
115
                if option.is_hidden(name):
 
116
                    continue
115
117
                l = '    --' + name
116
118
                if argname is not None:
117
119
                    l += ' ' + argname