diff options
author | Alan Conway <aconway@apache.org> | 2014-09-02 16:22:27 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2014-09-02 16:22:27 +0000 |
commit | c7a7b9a48bd4fcd00341f10203f120a7cdc6f1d0 (patch) | |
tree | 34331164a8ec85885c0eaf958267c8f925a2a315 /tools | |
parent | 7517a8033ee962f835872c21ec00c1a52c220c0c (diff) | |
download | qpid-python-c7a7b9a48bd4fcd00341f10203f120a7cdc6f1d0.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/qpid@1622057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/src/py/qpid-ha | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/src/py/qpid-ha b/tools/src/py/qpid-ha index d7b2cb48f6..10be34475c 100755 --- a/tools/src/py/qpid-ha +++ b/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): |