# If no arguments, diplay help and exit if len(sys.argv) == 1: print(banner) parser.print_help() sys.exit(1) # Add information if not args.private and not args.tests: logger.warning( "private argument is not set, the private key will not be displayed, even if recovered." ) # Parse longs if exists if args.p is not None: args.p = get_numeric_value(args.p) if args.q is not None: args.q = get_numeric_value(args.q) if args.e is not None: args.e = get_numeric_value(args.e) # get n if we can if args.n is not None: args.n = get_numeric_value(args.n) elif args.p is not None and args.q is not None: args.n = args.p * args.q # if we have uncipher but no uncipherfile if args.uncipher is not None:
# If no arguments, diplay help and exit if len(sys.argv) == 1: print(banner) parser.print_help() sys.exit(1) # Add information if not args.private and not args.tests: logger.warning( "private argument is not set, the private key will not be displayed, even if recovered." ) # Parse longs if exists if args.p is not None: args.p = get_numeric_value(args.p) if args.q is not None: args.q = get_numeric_value(args.q) if args.e is not None: e_array = [] for e in args.e.split(","): e_int = get_numeric_value(e) e_array.append(e_int) args.e = e_array if len(e_array) > 1 else e_array[0] # get n if we can if args.n is not None: args.n = get_numeric_value(args.n) elif args.p is not None and args.q is not None: