"""
Run the SparkNet Review Dashboard.

Usage:
    python -m sparknet_sdk.dashboard [--port PORT] [--host HOST]
"""

import argparse
from .api import run_dashboard


def main():
    parser = argparse.ArgumentParser(description="SparkNet Review Dashboard")
    parser.add_argument("--port", type=int, default=8502, help="Port to run on (default: 8502)")
    parser.add_argument("--host", default="127.0.0.1", help="Host to bind to (default: 127.0.0.1)")

    args = parser.parse_args()

    run_dashboard(host=args.host, port=args.port)


if __name__ == "__main__":
    main()
