/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_man.py

  • Committer: Robert Collins
  • Date: 2007-04-23 02:29:35 UTC
  • mfrom: (2441 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2442.
  • Revision ID: robertc@robertcollins.net-20070423022935-9hhongamvk6bfdso
Resolve conflicts with bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        cmd_help = cmd_object.help()
81
81
        if cmd_help:
82
82
            firstline = cmd_help.split('\n', 1)[0]
83
 
            usage = bzrlib.help.command_usage(cmd_object)
 
83
            usage = cmd_object._usage()
84
84
            tmp = '.TP\n.B "%s"\n%s\n' % (usage, firstline)
85
85
            output = output + tmp
86
86
        else:
101
101
 
102
102
def format_command (params, cmd):
103
103
    """Provides long help for each public command"""
104
 
    subsection_header = '.SS "%s"\n' % (bzrlib.help.command_usage(cmd))
 
104
    subsection_header = '.SS "%s"\n' % (cmd._usage())
105
105
    doc = "%s\n" % (cmd.__doc__)
106
106
    doc = cmd.help()
107
107
 
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 = """\
176
183
.I "BZRPATH"
177
184
Path where
178
185
.B "%(bzrcmd)s"
179
 
is to look for external command.
 
186
is to look for shell plugin external commands.
180
187
.TP
181
188
.I "BZR_EMAIL"
182
189
E-Mail address of the user. Overrides default user config.
198
205
.SH "FILES"
199
206
.TP
200
207
.I "~/.bazaar/bazaar.conf"
201
 
Contains the users default configuration. The section
 
208
Contains the user's default configuration. The section
202
209
.B [DEFAULT]
203
210
is used to define general configuration that will be applied everywhere.
204
211
The section