def METHOD_NAME(args: argparse.Namespace):
    """ Main driver function."""
    # Hold logs for 'updated' and 'skipped' files.
    logs = defaultdict(list)
    # Go through each file and operate on it, if applicable.
    for file_ in find_json_files(args.directory):
        with open(file_, "r+") as fp:
            json_file = json.load(fp)
            if not has_release_version(json_file, KEYS, args.recent):
                logs["skipped"].append(
                    f"Version '{args.recent}' not found in '{file_}'"
                )
                continue
            update_version(json_file, KEYS, args)
            fp.seek(0)
            fp.truncate()
            json.dump(json_file, fp, **DUMP_ARGS)
            logs["updated"].append(f"Updated '{file_}'")
    # Print logs collected.
    print_logs(logs, args.verbose)