From 3c0f48b26c024d59e0534ba6698a0f4460849361 Mon Sep 17 00:00:00 2001 From: Sanghun Lee Date: Thu, 24 Oct 2024 12:27:51 +0900 Subject: [PATCH] remove too verbose help text --- src/ai/backend/client/cli/service.py | 6 ++---- src/ai/backend/client/cli/session/args.py | 3 +-- src/ai/backend/client/cli/session/execute.py | 3 +-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/ai/backend/client/cli/service.py b/src/ai/backend/client/cli/service.py index 944bcaf572..a56795c577 100644 --- a/src/ai/backend/client/cli/service.py +++ b/src/ai/backend/client/cli/service.py @@ -195,8 +195,7 @@ def info(ctx: CLIContext, service_name_or_id: str): 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." + "to the minimum/maximum resources requirements specified by an image." ), ) @click.option( @@ -401,8 +400,7 @@ def create( 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." + "to the minimum/maximum resources requirements specified by an image." ), ) @click.option( diff --git a/src/ai/backend/client/cli/session/args.py b/src/ai/backend/client/cli/session/args.py index 75c0ff2b9b..091f537f96 100644 --- a/src/ai/backend/client/cli/session/args.py +++ b/src/ai/backend/client/cli/session/args.py @@ -134,8 +134,7 @@ 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." + "to the minimum/maximum resources requirements specified by an image." ), ), # resource grouping diff --git a/src/ai/backend/client/cli/session/execute.py b/src/ai/backend/client/cli/session/execute.py index 94abd28fe9..3a3e308ef6 100644 --- a/src/ai/backend/client/cli/session/execute.py +++ b/src/ai/backend/client/cli/session/execute.py @@ -368,8 +368,7 @@ def prepare_mount_arg( 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." + "to the minimum/maximum resources requirements specified by an image." ), ) @click.option(