MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / getOpts

Function getOpts

python/seldon/cli/cli_main.py:272–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270 return json.loads(json_data)
271
272def getOpts():
273 parser = argparse.ArgumentParser(prog='seldon-cli', description='Seldon Cli')
274 parser.add_argument('--version', action='store_true', help="print the version", required=False)
275 parser.add_argument('--debug', action='store_true', help="debugging flag", required=False)
276 parser.add_argument('--zk-hosts', help="the zookeeper hosts", required=False)
277 parser.add_argument('--setup-config', action='store_true', help="setup the config and exit", required=False)
278 parser.add_argument('--print-default-config', action='store_true', help="print the default config and exit", required=False)
279 parser.add_argument('-q', "--quiet", action='store_true', help="only display important messages, useful in non-interactive mode")
280 parser.add_argument('args', nargs=argparse.REMAINDER) # catch rest (non-options) as args
281 opts = parser.parse_args()
282 return opts
283
284def expand_conf():
285 conf_data = gdata['conf_data']

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected