You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2014/09/02 18:22:28 UTC

svn commit: r1622057 - /qpid/trunk/qpid/tools/src/py/qpid-ha

Author: aconway
Date: Tue Sep  2 16:22:27 2014
New Revision: 1622057

URL: http://svn.apache.org/r1622057
Log:
QPID-6035: HA fix bug in qpid-ha, --help does not show help.

Modified:
    qpid/trunk/qpid/tools/src/py/qpid-ha

Modified: qpid/trunk/qpid/tools/src/py/qpid-ha
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tools/src/py/qpid-ha?rev=1622057&r1=1622056&r2=1622057&view=diff
==============================================================================
--- qpid/trunk/qpid/tools/src/py/qpid-ha (original)
+++ qpid/trunk/qpid/tools/src/py/qpid-ha Tue Sep  2 16:22:27 2014
@@ -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):



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org