| 176 | else: raise |
| 177 | |
| 178 | def 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 | |
| 188 | class CmdLineApp(Cmd): |
| 189 | |