/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Daniel Watkins
  • Date: 2007-08-23 10:30:11 UTC
  • mto: (2762.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2763.
  • Revision ID: d.m.watkins@warwick.ac.uk-20070823103011-rqu9tts90u7mugkc
Modified bzrlib.help as per abentley's comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        for index, topic in topics[1:]:
49
49
            shadowed_terms.append('%s%s' % (index.prefix, topic.get_help_topic()))
50
50
        outfile.write(topics[0][1].get_help_text(shadowed_terms))
51
 
        if alias:
52
 
            outfile.write("'bzr %s' is an alias for 'bzr %s'.\n" % (topic, " ".join(alias)))
53
51
    except errors.NoHelpTopic:
54
 
        if alias:
55
 
            outfile.write("'bzr %s' is an alias for 'bzr %s'.\n" % (topic, " ".join(alias)))
56
 
        else:
57
 
            raise errors.NoHelpTopic(topic)
 
52
        if alias is None:
 
53
            raise
 
54
 
 
55
    if alias is not None:
 
56
        outfile.write("'bzr %s' is an alias for 'bzr %s'.\n" % (topic, " ".join(alias)))
58
57
 
59
58
 
60
59
def help_commands(outfile=None):