Skip to content

The -- mechanism for splitting arguments doesn't get forwarded correctly #25

Open
@simonw

Description

@simonw

Spotted this for my llm command, which uses click-default-group to set the default command to llm prompt.

If you run this:

llm -- '--help means what?'

You get this error:

Usage: llm prompt [OPTIONS] [PROMPT]
Try 'llm prompt --help' for help.

Error: No such option: --help means what?

But if you run the full command instead:

llm prompt -- '--help means what?'

You get the expected answer:

"--help" is a command that can be used in various computer programs and ...

Bug reported here:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions