(self, parser, defaults)
add options specific to the CSP interface
add options specific to the CSP interface
add options specific to the CSP interface
def _add_csp_options(self, parser, defaults):
        """ add options specific to the CSP interface """
        parser.add_option("-i", "--interface",
                          dest="interface", type="string",
                          default=defaults._interface, metavar="IFACE",
                          help="bind listening socket to IFACE, (default: %default)")
        parser.add_option("-p", "--port",
                          dest="port", type="int",
                          default=defaults._port, metavar="PORT",
                          help="bind listening socket to PORT, (default: %default)")
        parser.add_option("-w", "--web-api-port",
                          dest="web_api_port", type="int",
                          default=defaults._web_api_port, metavar="WEBAPIPORT",
                          help="bind web api listening socket to WEBAPIPORT, (default: %default)")
        parser.add_option("-W", "--web-api-interface",
                          dest="web_api_interface", type="string",
                          default=defaults._web_api_interface, metavar="WEBAPIINTERFACE",
                          help="bind web api listening socket to WEBAPIINTERFACE, (default: %default)")
        parser.add_option('-x', '--ignore-publish-non-existing-channels',
                          dest="ignore_publish_non_existing_channels",
                          default=defaults._ignore_publish_non_existing_channels,
                          help="ignore if publishing to a not existing channels")
def _add_csp_options ( self , parser , defaults ) : parser . add_option ( "-i" , "--interface" , dest = "interface" , type = "string" , default = defaults . _interface , metavar = "IFACE" , help = "bind listening socket to IFACE, (default: %default)" ) parser . add_option ( "-p" , "--port" , dest = "port" , type = "int" , default = defaults . _port , metavar = "PORT" , help = "bind listening socket to PORT, (default: %default)" ) parser . add_option ( "-w" , "--web-api-port" , dest = "web_api_port" , type = "int" , default = defaults . _web_api_port , metavar = "WEBAPIPORT" , help = "bind web api listening socket to WEBAPIPORT, (default: %default)" ) parser . add_option ( "-W" , "--web-api-interface" , dest = "web_api_interface" , type = "string" , default = defaults . _web_api_interface , metavar = "WEBAPIINTERFACE" , help = "bind web api listening socket to WEBAPIINTERFACE, (default: %default)" ) parser . add_option ( '-x' , '--ignore-publish-non-existing-channels' , dest = "ignore_publish_non_existing_channels" , default = defaults . _ignore_publish_non_existing_channels , help = "ignore if publishing to a not existing channels" )