forked from phoenix-oss/llama-stack-mirror
fix: misleading help text for 'llama stack build' and 'llama stack run' (#1910)
# What does this PR do? current text for 'llama stack build' and 'llama stack run' says that if no argument is passed to '--image-name' that the active Conda environment will be used in reality, the active enviroment is used whether it is from conda, virtualenv, etc. ## Test Plan N/A ## Documentation N/A Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
parent
0751a960a5
commit
854c2ad264
3 changed files with 3 additions and 3 deletions
|
@ -231,7 +231,7 @@ options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
--port PORT Port to run the server on. It can also be passed via the env var LLAMA_STACK_PORT. (default: 8321)
|
--port PORT Port to run the server on. It can also be passed via the env var LLAMA_STACK_PORT. (default: 8321)
|
||||||
--image-name IMAGE_NAME
|
--image-name IMAGE_NAME
|
||||||
Name of the image to run. Defaults to the current conda environment (default: None)
|
Name of the image to run. Defaults to the current environment (default: None)
|
||||||
--disable-ipv6 Disable IPv6 support (default: False)
|
--disable-ipv6 Disable IPv6 support (default: False)
|
||||||
--env KEY=VALUE Environment variables to pass to the server in KEY=VALUE format. Can be specified multiple times. (default: [])
|
--env KEY=VALUE Environment variables to pass to the server in KEY=VALUE format. Can be specified multiple times. (default: [])
|
||||||
--tls-keyfile TLS_KEYFILE
|
--tls-keyfile TLS_KEYFILE
|
||||||
|
|
|
@ -57,7 +57,7 @@ class StackBuild(Subcommand):
|
||||||
type=str,
|
type=str,
|
||||||
help=textwrap.dedent(
|
help=textwrap.dedent(
|
||||||
f"""[for image-type={"|".join(e.value for e in ImageType)}] Name of the conda or virtual environment to use for
|
f"""[for image-type={"|".join(e.value for e in ImageType)}] Name of the conda or virtual environment to use for
|
||||||
the build. If not specified, currently active Conda environment will be used if found.
|
the build. If not specified, currently active environment will be used if found.
|
||||||
"""
|
"""
|
||||||
),
|
),
|
||||||
default=None,
|
default=None,
|
||||||
|
|
|
@ -45,7 +45,7 @@ class StackRun(Subcommand):
|
||||||
"--image-name",
|
"--image-name",
|
||||||
type=str,
|
type=str,
|
||||||
default=os.environ.get("CONDA_DEFAULT_ENV"),
|
default=os.environ.get("CONDA_DEFAULT_ENV"),
|
||||||
help="Name of the image to run. Defaults to the current conda environment",
|
help="Name of the image to run. Defaults to the current environment",
|
||||||
)
|
)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
"--disable-ipv6",
|
"--disable-ipv6",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue