Open epage opened 2 years ago
Comment by epage Sunday Nov 14, 2021 at 01:52 GMT
Thanks for reporting this!
One challenge with completions is we have to effectively re-implement clap's argument parsing for each shell we support. Example of other issues that look like they stem from this:
This is making me think that https://github.com/clap-rs/clap/issues/1232 is even more important so we can share parsing logic between different shells and clap and more easily test it.
Issue by Morganamilo Saturday Nov 13, 2021 at 22:47 GMT Originally opened as https://github.com/clap-rs/clap/issues/3022
Please complete the following tasks
Rust Version
rustc 1.58.0-nightly (8b09ba6a5 2021-11-09)
Clap Version
3.0.0-beta.5
Minimal reproducible code
Steps to reproduce the bug with the above code
With the completion installed:
Actual Behaviour
So I have a program that has a usage like this:
program: <targets>... -- <files>...
The zsh completion seems to really not like this and spits out an error when tab is hit:
_arguments:comparguments:325: doubled rest argument definition: *::file -- Files to search for:
The completion generated is:
Expected Behaviour
Don't be broken
Additional Context
No response
Debug Output
No response