def get_key_from_cmdline(parser, args):
if args.keyfiles:<EOL><INDENT>signing_key = open(args.keyfiles[<NUM_LIT:0>], '<STR_LIT:rb>').read()<EOL>bits = get_keysize(signing_key)<EOL>if bits == <NUM_LIT>:<EOL><INDENT>signing_algorithm = '<STR_LIT>'<EOL><DEDENT>elif bits == <NUM_LIT>:<EOL><INDENT>signing_algorithm = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>parser.error("<STR_LIT>".format(bits, args.keyfiles[<NUM_LIT:0>]))<EOL><DEDENT>print("<STR_LIT>".format(args.keyfiles[<NUM_LIT:0>], signing_algorithm))<EOL><DEDENT>else:<EOL><INDENT>signing_key = None<EOL>signing_algorithm = None<EOL><DEDENT>return signing_key, signing_algorithm<EOL>
Return the signing key and signing algoritm from the commandline.