Skip to content

Zsh shell completion doesn't work for flags/args that come after positional values #4652

Closed
@gbrlsnchs

Description

@gbrlsnchs

Discussed in #4648

Originally posted by gbrlsnchs January 18, 2023
One practical example is the tool I wrote using clap, park. When I mix values and flags/args, the shell completion no longer works.

This works:

$ park --<Tab>

This doesn't:

$ park something --<Tab>

And despite the completion not working, flags/args that come after values effectively work when run, so... am I missing something? I just want to confirm whether it's a misconfiguration by my part, otherwise I'll proceed to open an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-completionArea: completion generatorC-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions