#!/bin/sh
set -eu

for python in python3.13 python3.12 python3.11; do
    if command -v "$python" >/dev/null 2>&1; then
        exec "$python" -m work_item "$@"
    fi
done

echo "work-item: Python 3.11 or newer is required" >&2
exit 2
