def make_config_parser(*args, **kwargs): parser = client.make_config_parser(*args, **kwargs) parser.add_argument("--id", action="store", default=None, help="The ID of the server.") return parser
def main(): parser = client.make_config_parser() parser.add_argument("credentials", help="Credentials to mint.") parser.add_argument("--token-expiry", help="When to expire credentials. NOTE: Credentials " "cannot be revoked without generating a new minting " "key pair!", type=int, default=100) shell.add_parser_arguments(parser) conf = parser.parse_args() s = shell.Shell(ClientShell, 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()