def main(): parser = server.make_config_parser() shell.add_parser_arguments(parser) conf = parser.parse_args() s = shell.Shell(ServerShell, conf, banner1=BANNER) if conf.filename is not None: with open(conf.filename, "r") as f: s.thread.do(s.ex, f.read()) else: s.mainloop()
def main(): server.Application(server.make_config_parser().parse_args()).once(repair)
def main(): Manager(server.make_config_parser().parse_args()).run()