def METHOD_NAME() -> int:
    parser = argparse.ArgumentParser("validate_rsis.py", description="Validates RSI file integrity for mistakes the engine does not catch while loading.")
    parser.add_argument("directories", nargs="+", help="Directories to look for RSIs in")
    args = parser.parse_args()
    schema = load_schema()
    for dir in args.directories:
        check_dir(dir, schema)
    for error in errors:
        print(f"{error.path}: {error.message}")
    return 1 if errors else 0