(self, parser = None)
return p
Add SetAdmin switches to parser.
Add SetAdmin switches to parser.
Add SetAdmin switches to parser .
def init_optparse(self, parser = None):
        """Add SetAdmin switches to parser."""
        p = skytools.AdminScript.init_optparse(self, parser)

        usage = command_usage + standalone_usage
        p.set_usage(usage.strip())

        g = optparse.OptionGroup(p, "actual queue admin options")
        g.add_option("--connstr", action="store_true",
                     help = "initial connect string")
        g.add_option("--provider",
                     help = "init: connect string for provider")
        g.add_option("--queue",
                     help = "specify queue name")
        g.add_option("--worker",
                     help = "create: specify worker name")
        g.add_option("--node",
                     help = "specify node name")
        g.add_option("--consumer",
                     help = "specify consumer name")
        g.add_option("--target",
                    help = "takeover: specify node to take over")
        g.add_option("--merge",
                    help = "create-node: combined queue name")
        g.add_option("--dead", action="append",
                    help = "tag some node as dead")
        g.add_option("--dead-root", action="store_true",
                    help = "tag some node as dead")
        g.add_option("--dead-branch", action="store_true",
                    help = "tag some node as dead")
        g.add_option("--sync-watermark",
                    help = "list of node names to sync with")
        p.add_option_group(g)
        return p
def init_optparse ( self , parser = None ) : p = skytools . AdminScript . init_optparse ( self , parser ) usage = command_usage + standalone_usage p . set_usage ( usage . strip ( ) ) g = optparse . OptionGroup ( p , "actual queue admin options" ) g . add_option ( "--connstr" , action = "store_true" , help = "initial connect string" ) g . add_option ( "--provider" , help = "init: connect string for provider" ) g . add_option ( "--queue" , help = "specify queue name" ) g . add_option ( "--worker" , help = "create: specify worker name" ) g . add_option ( "--node" , help = "specify node name" ) g . add_option ( "--consumer" , help = "specify consumer name" ) g . add_option ( "--target" , help = "takeover: specify node to take over" ) g . add_option ( "--merge" , help = "create-node: combined queue name" ) g . add_option ( "--dead" , action = "append" , help = "tag some node as dead" ) g . add_option ( "--dead-root" , action = "store_true" , help = "tag some node as dead" ) g . add_option ( "--dead-branch" , action = "store_true" , help = "tag some node as dead" ) g . add_option ( "--sync-watermark" , help = "list of node names to sync with" ) p . add_option_group ( g ) return p