~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Martin Pool
  • Date: 2005-05-11 06:20:05 UTC
  • Revision ID: mbp@sourcefrog.net-20050511062005-297af3451635dae0
- Don't lose first line of command help!

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    if doc == None:
100
100
        raise NotImplementedError("sorry, no detailed help yet for %r" % cmdname)
101
101
 
102
 
    if '\n' in doc:
103
 
        short, rest = doc.split('\n', 1)
104
 
    else:
105
 
        short = doc
106
 
        rest = ''
107
 
 
108
102
    print 'usage:', command_usage(topic, cmdclass)
109
103
 
110
104
    if cmdclass.aliases:
111
105
        print 'aliases: ' + ', '.join(cmdclass.aliases)
112
106
    
113
 
    if rest:
114
 
        print rest
115
 
 
 
107
    print doc
 
108
    
116
109
    help_on_option(cmdclass.takes_options)
117
110
 
118
111