def METHOD_NAME():
    args = parser.parse_args()
    if args.udf:
        # migrate a single UDF
        migrate_udf(args.udf)
        return
    # iterate through udfs and migrate one by one
    for udf_dir in args.udf_dirs:
        if os.path.isdir(udf_dir):
            for root, dirs, files in os.walk(udf_dir):
                for udf_file in files:
                    if udf_file.endswith(".sql"):
                        with open(os.path.join(root, udf_file)) as udf:
                            if (
                                "Legacy wrapper around a function moved to mozfun"
                                not in udf.read()
                            ):
                                resp = input(f"Migrate {udf_file}? [y/n] ")
                                if resp == "y" or resp == "yes":
                                    migrate_udf(os.path.join(root, udf_file))