def parse_arguments():
    """Parse and validate command line arguments"""
    parser = argparse.ArgumentParser(description="Gemini MCP Communication Simulator Test")
    parser.add_argument("--verbose", "-v", action="store_true", help="Enable verbose logging")
    parser.add_argument("--keep-logs", action="store_true", help="Keep Docker services running for log inspection")
    parser.add_argument("--tests", "-t", nargs="+", help="Specific tests to run (space-separated)")
    parser.add_argument("--list-tests", action="store_true", help="List available tests and exit")
    parser.add_argument("--individual", "-i", help="Run a single test individually")
    parser.add_argument(
        "--skip-docker",
        action="store_true",
        default=True,
        help="Skip Docker setup (assumes containers are already running) - DEFAULT",
    )
    parser.add_argument(
        "--rebuild-docker", action="store_true", help="Force rebuild Docker environment (overrides --skip-docker)"
    )

    return parser.parse_args()
Parse and validate command line arguments
communication_simulator_test.py