~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Aaron Bentley
  • Date: 2005-10-19 05:30:42 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1474.
  • Revision ID: abentley@panoramicfeedback.com-20051019053042-8c2e001e21a5a692
did test wrapping for option text

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
# executable files with reasonable names.
21
21
 
22
22
# TODO: `help commands --all` should show hidden commands
 
23
import textwrap
23
24
 
24
25
global_help = \
25
26
"""Bazaar-NG -- a free distributed version-control tool
134
135
        l += (30 - len(l)) * ' ' + option.help
135
136
        # TODO: split help over multiple lines with correct indenting and 
136
137
        # wrapping
137
 
        outfile.write(l + '\n')
 
138
        wrapped = textwrap.fill(l, initial_indent='', subsequent_indent=30*' ')
 
139
        outfile.write(wrapped + '\n')
138
140
 
139
141
 
140
142
def help_commands(outfile=None):