def parse_args()

in resources/code/my-first-enclave/cryptographic-attestation/client.py [0:0]


def parse_args():
    parser = argparse.ArgumentParser()
    parser.add_argument("--alias", required=True, help="valid KMS key alias")
    parser.add_argument(
        "--values",
        type=argparse.FileType('r'),
        help='The account values file to select an account number from')
    parser.add_argument(
        "--ciphertext",
        type=argparse.FileType('r'),
        help='A file containing a kms-encrypted base64 encoded account number')
    arg_group = parser.add_mutually_exclusive_group(required=True)
    arg_group.add_argument(
        "--prepare",
        action="store_true",
        help="select a single account number and encrypt it using KMS")
    arg_group.add_argument(
        "--submit",
        action="store_true",
        help=
        "submit an encrypted account number to the enclave server application")

    return parser.parse_args()