llama-stack-mirror/llama_stack/cli
Charlie Doern 5f88ff0b6a
fix: show proper help text (#1065)
# What does this PR do?
when executing a sub-command like `llama model` the improper help text,
sub-commands, and flags are displayed. each command group needs to have
`.set_defaults` to display this info properly

before: 

```
llama model
usage: llama [-h] {model,stack,download,verify-download} ...

Welcome to the Llama CLI

options:
  -h, --help            show this help message and exit

subcommands:
  {model,stack,download,verify-download}
```

after:

```
llama model
usage: llama model [-h] {download,list,prompt-format,describe,verify-download} ...

Work with llama models

options:
  -h, --help            show this help message and exit

model_subcommands:
  {download,list,prompt-format,describe,verify-download}
```

Signed-off-by: Charlie Doern <cdoern@redhat.com>
2025-02-12 06:38:25 -08:00
..
model fix: show proper help text (#1065) 2025-02-12 06:38:25 -08:00
scripts API Updates (#73) 2024-09-17 19:51:35 -07:00
stack fix: show proper help text (#1065) 2025-02-12 06:38:25 -08:00
tests Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
download.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
llama.py Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00
subcommand.py API Updates (#73) 2024-09-17 19:51:35 -07:00
table.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
verify_download.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00