From 8871b93211e3663df841bc2c20c077e44ade248e Mon Sep 17 00:00:00 2001 From: Blaine Kasten Date: Wed, 26 Nov 2025 09:37:32 -0600 Subject: [PATCH] fix: Address incorrect logic for `endpoint [command] --wait false` logic --- src/together/lib/cli/api/endpoints.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/together/lib/cli/api/endpoints.py b/src/together/lib/cli/api/endpoints.py index cf3598ed..8383f629 100644 --- a/src/together/lib/cli/api/endpoints.py +++ b/src/together/lib/cli/api/endpoints.py @@ -128,8 +128,7 @@ def endpoints(ctx: click.Context) -> None: help="Start endpoint in specified availability zone (e.g., us-central-4b)", ) @click.option( - "--wait", - is_flag=True, + "--wait/--no-wait", default=True, help="Wait for the endpoint to be ready after creation", ) @@ -272,7 +271,7 @@ def fetch_and_print_hardware_options(client: Together, model: str | None, print_ @endpoints.command() @click.argument("endpoint-id", required=True) -@click.option("--wait", is_flag=True, default=True, help="Wait for the endpoint to stop") +@click.option("--wait/--no-wait", default=True, help="Wait for the endpoint to stop") @click.pass_obj @handle_api_errors def stop(client: Together, endpoint_id: str, wait: bool) -> None: @@ -293,7 +292,7 @@ def stop(client: Together, endpoint_id: str, wait: bool) -> None: @endpoints.command() @click.argument("endpoint-id", required=True) -@click.option("--wait", is_flag=True, default=True, help="Wait for the endpoint to start") +@click.option("--wait/--no-wait", default=True, help="Wait for the endpoint to start") @click.pass_obj @handle_api_errors def start(client: Together, endpoint_id: str, wait: bool) -> None: