~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_man.py

  • Committer: Robert Collins
  • Date: 2007-04-19 05:32:24 UTC
  • mto: (2425.1.2 integration)
  • mto: This revision was merged to the branch mainline in revision 2427.
  • Revision ID: robertc@robertcollins.net-20070419053224-f5lkin1fbjj2ci0s
Update the doc_generate logic to include see-also help topics.
(Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        aliases_str += ', '.join(cmd.aliases)
132
132
        aliases_str += '\n'
133
133
 
134
 
    return subsection_header + option_str + aliases_str + "\n" + doc + "\n"
 
134
    see_also_str = ""
 
135
    see_also = cmd.get_see_also()
 
136
    if see_also:
 
137
        see_also_str += '\nSee also: '
 
138
        see_also_str += ', '.join(see_also)
 
139
        see_also_str += '\n'
 
140
 
 
141
    return subsection_header + option_str + aliases_str + see_also_str + "\n" + doc + "\n"
135
142
 
136
143
 
137
144
man_preamble = """\