Testing: IP allocation simulation - clean up usage message.
authorMartin Schwenke <martin@meltin.net>
Tue, 3 Aug 2010 01:41:50 +0000 (11:41 +1000)
committerMartin Schwenke <martin@meltin.net>
Tue, 3 Aug 2010 01:41:50 +0000 (11:41 +1000)
Group options better and make the language consistent between options.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/takeover/ctdb_takeover.py

index f9c1e2df773740175f4375050f47386568d4a1c9..f7b0175e8e0628759661f47022b432bbc95a3c85 100755 (executable)
@@ -44,15 +44,18 @@ def process_args(extra_options=[]):
     parser.add_option("--ni",
                       action="store_true", dest="no_ip_failback", default=False,
                       help="turn on no_ip_failback")
-    parser.add_option("-v", "--verbose",
-                      action="store_true", dest="verbose", default=False,
-                      help="print information and actions taken to stdout")
+    parser.add_option("-b", "--balance",
+                      action="store_true", dest="balance", default=False,
+                      help="show (im)balance information after each event")
     parser.add_option("-d", "--diff",
                       action="store_true", dest="diff", default=False,
-                      help="after each recovery show IP address movements")
+                      help="show IP address movements for each event")
     parser.add_option("-n", "--no-print",
                       action="store_false", dest="show", default=True,
-                      help="after each recovery don't print IP address layout")
+                      help="don't show IP address layout after each event")
+    parser.add_option("-v", "--verbose",
+                      action="store_true", dest="verbose", default=False,
+                      help="print information and actions taken to stdout")
     parser.add_option("--hack",
                       action="store", type="int", dest="hack", default=0,
                       help="apply a hack (see the code!!!)")
@@ -70,9 +73,6 @@ def process_args(extra_options=[]):
                       action="callback", type="int", callback=seed_callback,
                       help="initial random number seed for random events")
 
-    parser.add_option("-b", "--balance",
-                      action="store_true", dest="balance", default=False,
-                      help="show (im)balance information for each event")
     parser.add_option("-x", "--exit",
                       action="store_true", dest="exit", default=False,
                       help="exit on the 1st gratuitous IP move")