def main(): command_opt = cfg.SubCommandOpt('command', title='Commands', help='Show available commands.', handler=add_command_parsers) CONF.register_cli_opt(command_opt) #service.prepare_service(default_config_files=['/etc/iota/iota.conf']) service.prepare_service() CONF.command.func()
def main(): service.prepare_service(default_config_files=['/etc/iota/iota.conf']) app.build_server()