"""Einstiegspunkt: python -m scripts.api [--robot ...] [--host ...] [--port ...]"""
import argparse

from scripts.api import start_server


def main() -> None:
    ap = argparse.ArgumentParser(description="approbot-pipeline REST-API starten")
    ap.add_argument("--robot", default=None, help="Pfad zu robot.json")
    ap.add_argument("--host", default="0.0.0.0")
    ap.add_argument("--port", type=int, default=8446)
    args = ap.parse_args()
    start_server(robot_json=args.robot, host=args.host, port=args.port)


if __name__ == "__main__":
    main()
