summaryrefslogtreecommitdiff
path: root/qpid/tools/src/py
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-09-02 16:22:27 +0000
committerAlan Conway <aconway@apache.org>2014-09-02 16:22:27 +0000
commit4e794e4b1157995e544b9a501b39a13d002e0b10 (patch)
tree2495b0f0c815b767791d9cc97040be1034bbe924 /qpid/tools/src/py
parent1375adcc2dc0f1b7637d838ecffd328a7eca96ff (diff)
downloadqpid-python-4e794e4b1157995e544b9a501b39a13d002e0b10.tar.gz
QPID-6035: HA fix bug in qpid-ha, --help does not show help.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1622057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/tools/src/py')
-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):