| 270 | return json.loads(json_data) |
| 271 | |
| 272 | def 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 | |
| 284 | def expand_conf(): |
| 285 | conf_data = gdata['conf_data'] |