summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xqpid/tools/src/py/qpid-ha5
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/tools/src/py/qpid-ha b/qpid/tools/src/py/qpid-ha
index d7b2cb48f6..10be34475c 100755
--- a/qpid/tools/src/py/qpid-ha
+++ b/qpid/tools/src/py/qpid-ha
@@ -243,9 +243,8 @@ QueryCmd()
def print_usage(prog):
print "usage: %s <command> [<arguments>]\n\nCommands are:\n"%prog
- for name, command in Command.commands.iteritems():
- help = command.help
- print " %-12s %s."%(name, help.split(".")[0])
+ for cmd in Command.commands:
+ print " %-12s %s."%(cmd.name, cmd.help.split(".")[0])
print "\nFor help with a command type: %s <command> --help\n"%prog
def find_command(args, commands):