~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-06-15 12:03:59 UTC
  • mfrom: (4119.3.16 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090615120359-3a9650kr76j1jyf2
(robertc) Make core command lookup fully hookable and extensible.
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        hidden = True
74
74
    else:
75
75
        hidden = False
76
 
    names = set(_mod_commands.builtin_command_names()) # to eliminate duplicates
77
 
    names.update(_mod_commands.plugin_command_names())
 
76
    names = list(_mod_commands.all_command_names())
78
77
    commands = ((n, _mod_commands.get_cmd_object(n)) for n in names)
79
78
    shown_commands = [(n, o) for n, o in commands if o.hidden == hidden]
80
79
    max_name = max(len(n) for n, o in shown_commands)