~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Vincent Ladeuil
  • Date: 2012-03-13 09:07:18 UTC
  • mfrom: (6437.23.26 2.5)
  • mto: This revision was merged to the branch mainline in revision 6499.
  • Revision ID: v.ladeuil+lp@free.fr-20120313090718-2e5wf4d6otbh2k2r
Merge 2.5 branch including bugfix for #940164 and #944696

Show diffs side-by-side

added added

removed removed

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