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

Function getOpts

python/seldon/shell/shell_main.py:178–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176 else: raise
177
178def getOpts():
179 parser = argparse.ArgumentParser(description='Seldon Shell')
180 parser.add_argument('-d', "--debug", action='store_true', help="turn on debugging")
181 parser.add_argument('-q', "--quiet", action='store_true', help="only display important messages, useful in non-interactive mode")
182 parser.add_argument('--zk-hosts', help="the zookeeper hosts", required=False)
183 parser.add_argument('--version', action='store_true', help="print the version", required=False)
184 parser.add_argument('args', nargs=argparse.REMAINDER) # catch rest (non-options) as args
185 opts = parser.parse_args()
186 return opts
187
188class CmdLineApp(Cmd):
189

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected