~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_rstx.py

  • Committer: Robert Collins
  • Date: 2007-04-23 01:41:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070423014105-tzsvtqg3rurfksv8
Fix tests broken by deprecation of help.command_usage.

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