Better help for --at option

This commit is contained in:
Simon Willison 2025-04-05 17:29:10 -07:00
parent f3e02b6de6
commit b7f54028e2
2 changed files with 3 additions and 2 deletions

View file

@ -123,7 +123,8 @@ Options:
-q, --query TEXT Use first model matching these strings
-a, --attachment ATTACHMENT Attachment path or URL or -
--at, --attachment-type <TEXT TEXT>...
Attachment with explicit mimetype
Attachment with explicit mimetype,
--at image.jpg image/jpeg
-o, --option <TEXT TEXT>... key/value options for the model
--schema TEXT JSON schema, filepath or ID
--schema-multi TEXT JSON schema to use for multiple results

View file

@ -275,7 +275,7 @@ def cli():
type=(str, str),
multiple=True,
callback=attachment_types_callback,
help="Attachment with explicit mimetype",
help="\b\nAttachment with explicit mimetype,\n--at image.jpg image/jpeg",
)
@click.option(
"options",