~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_rstx.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-23 02:09:44 UTC
  • mfrom: (2432.1.33 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070423020944-lcu3twk2zj27bw5a
(robertc) Fix bugs 107656 and 50408 by creating multiple help indices and cross referencing between them when user help requests are ambiguous. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        cmd_help = cmd_object.help()
74
74
        if cmd_help:
75
75
            firstline = cmd_help.split('\n', 1)[0]
76
 
            usage = bzrlib.help.command_usage(cmd_object)
 
76
            usage = cmd_object._usage()
77
77
            tmp = '**%s**\n\t%s\n\n' % (usage, firstline)
78
78
            output = output + tmp
79
79
        else:
97
97
 
98
98
def format_command (params, cmd, name):
99
99
    """Provides long help for each public command"""
100
 
    usage = bzrlib.help.command_usage(cmd)
 
100
    usage = cmd._usage()
101
101
    subsection_header = """
102
102
%s
103
103
%s