(self, parser=None)
return p
Setup command-line flags.
Setup command-line flags.
Setup command - line flags .
def init_optparse(self, parser=None):
        """Setup command-line flags."""
        p = skytools.DBScript.init_optparse(self, parser)
        p.set_usage(usage)
        g = optparse.OptionGroup(p, "options for skytools_upgrade")
        g.add_option("--all", action="store_true", help = 'upgrade all databases')
        g.add_option("--not-really", action = "store_true", dest = "not_really",
                     default = False, help = "don't actually do anything")
        g.add_option("--user", help = 'username to use')
        g.add_option("--host", help = 'hostname to use')
        g.add_option("--port", help = 'port to use')
        g.add_option("--force", action = "store_true",
                     help = 'upgrade even if schema versions are new enough')
        p.add_option_group(g)
        return p
def init_optparse ( self , parser = None ) : p = skytools . DBScript . init_optparse ( self , parser ) p . set_usage ( usage ) g = optparse . OptionGroup ( p , "options for skytools_upgrade" ) g . add_option ( "--all" , action = "store_true" , help = 'upgrade all databases' ) g . add_option ( "--not-really" , action = "store_true" , dest = "not_really" , default = False , help = "don't actually do anything" ) g . add_option ( "--user" , help = 'username to use' ) g . add_option ( "--host" , help = 'hostname to use' ) g . add_option ( "--port" , help = 'port to use' ) g . add_option ( "--force" , action = "store_true" , help = 'upgrade even if schema versions are new enough' ) p . add_option_group ( g ) return p