diff options
Diffstat (limited to 'python/londiste.py')
-rwxr-xr-x | python/londiste.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/python/londiste.py b/python/londiste.py index 272b824c..6582abea 100755 --- a/python/londiste.py +++ b/python/londiste.py @@ -92,17 +92,17 @@ class Londiste(skytools.DBScript): g = optparse.OptionGroup(p, "options for cascading") g.add_option("--provider", help = "init: upstream node temp connect string") - g.add_option("--target", + g.add_option("--target", metavar = "NODE", help = "switchover: target node") - g.add_option("--merge", + g.add_option("--merge", metavar = "QUEUE", help = "create-leaf: combined queue name") - g.add_option("--dead", action = 'append', + g.add_option("--dead", metavar = "NODE", action = 'append', help = "cascade: assume node is dead") g.add_option("--dead-root", action = 'store_true', help = "takeover: old node was root") g.add_option("--dead-branch", action = 'store_true', help = "takeover: old node was branch") - g.add_option("--sync-watermark", + g.add_option("--sync-watermark", metavar = "NODES", help = "create-branch: list of node names to sync wm with") p.add_option_group(g) @@ -110,15 +110,15 @@ class Londiste(skytools.DBScript): g.add_option("--rewind", action = "store_true", help = "change queue position according to destination") g.add_option("--reset", action = "store_true", - help = "reset queue pos on destination side") + help = "reset queue position on destination side") p.add_option_group(g) g = optparse.OptionGroup(p, "options for add") g.add_option("--all", action="store_true", - help = "add: include add possible tables") + help = "add: include all possible tables") g.add_option("--wait-sync", action="store_true", help = "add: wait until all tables are in sync"), - g.add_option("--dest-table", + g.add_option("--dest-table", metavar = "NAME", help = "add: redirect changes to different table") g.add_option("--expect-sync", action="store_true", dest="expect_sync", help = "add: no copy needed", default=False) @@ -129,24 +129,24 @@ class Londiste(skytools.DBScript): g.add_option("--create-full", action="store_true", help = "add: create table/seq if not exist, with full schema") g.add_option("--trigger-flags", - help="add: Set trigger flags (BAIUDLQ)") + help="add: set trigger flags (BAIUDLQ)") g.add_option("--trigger-arg", action="append", - help="add: Custom trigger arg (can be specified multiply times)") + help="add: custom trigger arg (can be specified multiple times)") g.add_option("--no-triggers", action="store_true", - help="add: Dont put triggers on table (makes sense on leaf)") + help="add: do not put triggers on table (makes sense on leaf)") g.add_option("--handler", action="store", - help="add: Custom handler for table") + help="add: custom handler for table") g.add_option("--handler-arg", action="append", - help="add: Argument to custom handler") + help="add: argument to custom handler") g.add_option("--find-copy-node", dest="find_copy_node", action="store_true", help = "add: walk upstream to find node to copy from") - g.add_option("--copy-node", dest="copy_node", + g.add_option("--copy-node", metavar = "NODE", dest="copy_node", help = "add: use NODE as source for initial COPY") g.add_option("--merge-all", action="store_true", help="merge tables from all source queues", default=False) g.add_option("--no-merge", action="store_true", help="don't merge tables from source queues", default=False) - g.add_option("--max-parallel-copy", type = "int", + g.add_option("--max-parallel-copy", metavar = "NUM", type = "int", help="max number of parallel copy processes") p.add_option_group(g) @@ -155,7 +155,7 @@ class Londiste(skytools.DBScript): help = "add: ignore table differences, repair: ignore lag") g.add_option("--apply", action = "store_true", help="repair: apply fixes automatically") - p.add_option("--count-only", action="store_true", + g.add_option("--count-only", action="store_true", help="compare: just count rows, do not compare data") p.add_option_group(g) |