Skip to content

Commit 0f341bf

Browse files
committed
fix(endpoints): wait flag should make it wait
1 parent 084d2d1 commit 0f341bf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/together/cli/api/endpoints.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,7 @@ def endpoints(ctx: click.Context) -> None:
133133
help="Number of minutes of inactivity after which the endpoint will be automatically stopped. Set to 0 to disable.",
134134
)
135135
@click.option(
136-
"--wait",
137-
is_flag=True,
136+
"--wait/--no-wait",
138137
default=True,
139138
help="Wait for the endpoint to be ready after creation",
140139
)
@@ -276,7 +275,9 @@ def fetch_and_print_hardware_options(
276275
@endpoints.command()
277276
@click.argument("endpoint-id", required=True)
278277
@click.option(
279-
"--wait", is_flag=True, default=True, help="Wait for the endpoint to stop"
278+
"--wait/--no-wait",
279+
default=True,
280+
help="Wait for the endpoint to stop",
280281
)
281282
@click.pass_obj
282283
@handle_api_errors
@@ -299,7 +300,9 @@ def stop(client: Together, endpoint_id: str, wait: bool) -> None:
299300
@endpoints.command()
300301
@click.argument("endpoint-id", required=True)
301302
@click.option(
302-
"--wait", is_flag=True, default=True, help="Wait for the endpoint to start"
303+
"--wait/--no-wait",
304+
default=True,
305+
help="Wait for the endpoint to start",
303306
)
304307
@click.pass_obj
305308
@handle_api_errors

0 commit comments

Comments
 (0)