llama-stack-mirror/llama_stack/cli/model
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
..
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
describe.py Convert SamplingParams.strategy to a union (#767) 2025-01-15 05:38:51 -08:00
download.py API Updates (#73) 2024-09-17 19:51:35 -07:00
list.py Add special case for prompt guard 2024-10-02 08:43:12 -07:00
model.py fix: show proper help text (#1065) 2025-02-12 06:38:25 -08:00
prompt_format.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
safety_models.py Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
verify_download.py Add a verify-download command to llama CLI (#457) 2024-11-14 11:47:51 -08:00