~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Vincent Ladeuil
  • Date: 2012-03-09 16:48:55 UTC
  • mto: (6437.23.24 2.5)
  • mto: This revision was merged to the branch mainline in revision 6499.
  • Revision ID: v.ladeuil+lp@free.fr-20120309164855-htdn25hp7x65mmir
Rely on sphinx for texinfo doc generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    help_topics,
32
32
    osutils,
33
33
    plugin,
34
 
    ui,
35
34
    utextwrap,
36
35
    )
37
36
 
39
38
def help(topic=None, outfile=None):
40
39
    """Write the help for the specific topic to outfile"""
41
40
    if outfile is None:
42
 
        outfile = ui.ui_factory.make_output_stream()
 
41
        outfile = sys.stdout
43
42
 
44
43
    indices = HelpIndices()
45
44
 
64
63
def help_commands(outfile=None):
65
64
    """List all commands"""
66
65
    if outfile is None:
67
 
        outfile = ui.ui_factory.make_output_stream()
 
66
        outfile = sys.stdout
68
67
    outfile.write(_help_commands_to_text('commands'))
69
68
 
70
69