def parse_arguments()

in evaluations/genai_evaluation.py [0:0]


def parse_arguments():
    """
    Parse command-line arguments.

    Returns:
        Namespace: Parsed arguments.
    """
    parser = argparse.ArgumentParser(
        description="Evaluate questions either by sending them to a REST API or processing them locally."
    )
    parser.add_argument(
        "--test-data",
        type=str,
        required=True,
        help="Path to the test dataset file in JSONL format.",
    )
    return parser.parse_args()