"""Deprecated (2.2.0): use ``python manage.py import-loans <file.csv>``.

The original script used INSERT OR REPLACE without validation, which failed on
loans with history and erased columns missing from the file. It now delegates
to the shared, validated pipeline in services/importer.py.
"""
import sys

import manage

if __name__ == "__main__":
    if len(sys.argv) < 2:
        print("Usage: python manage.py import-loans <file.csv> [--partial]")
        sys.exit(1)
    sys.exit(manage.main(["import-loans", *sys.argv[1:]]))
