Skip to content

Commit

Permalink
update cli help txt
Browse files Browse the repository at this point in the history
  • Loading branch information
fregataa committed Oct 24, 2024
1 parent de3d420 commit c60d058
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions src/ai/backend/client/cli/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ def info(ctx: CLIContext, service_name_or_id: str):
metavar="KEY=VAL",
type=str,
multiple=True,
help="Resource options for creating compute session (e.g: shmem=64m)",
help=(
"Resource options for creating compute session (e.g: shmem=64m). "
"The session APIs compare the total resources (the sum of this value and `resources`) "
"to the minimum/maximum resources requirements specified by an image. "
"If the total does not meet these resource limits, the APIs raise a InvalidAPIParameters error."
),
)
@click.option(
"--cluster-size",
Expand Down Expand Up @@ -393,7 +398,12 @@ def create(
metavar="KEY=VAL",
type=str,
multiple=True,
help="Resource options for creating compute session (e.g: shmem=64m)",
help=(
"Resource options for creating compute session (e.g: shmem=64m). "
"The session APIs compare the total resources (the sum of this value and `resources`) "
"to the minimum/maximum resources requirements specified by an image. "
"If the total does not meet these resource limits, the APIs raise a InvalidAPIParameters error."
),
)
@click.option(
"--cluster-size",
Expand Down
7 changes: 6 additions & 1 deletion src/ai/backend/client/cli/session/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@
metavar="KEY=VAL",
type=str,
multiple=True,
help="Resource options for creating compute session (e.g: shmem=64m)",
help=(
"Resource options for creating compute session (e.g: shmem=64m). "
"The session APIs compare the total resources (the sum of this value and `resources`) "
"to the minimum/maximum resources requirements specified by an image. "
"If the total does not meet these resource limits, the APIs raise a InvalidAPIParameters error."
),
),
# resource grouping
click.option(
Expand Down
7 changes: 6 additions & 1 deletion src/ai/backend/client/cli/session/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,12 @@ def prepare_mount_arg(
metavar="KEY=VAL",
type=str,
multiple=True,
help="Resource options for creating compute session. (e.g: shmem=64m)",
help=(
"Resource options for creating compute session (e.g: shmem=64m). "
"The session APIs compare the total resources (the sum of this value and `resources`) "
"to the minimum/maximum resources requirements specified by an image. "
"If the total does not meet these resource limits, the APIs raise a InvalidAPIParameters error."
),
)
@click.option(
"--arch",
Expand Down

0 comments on commit c60d058

Please sign in to comment.