Closed gibfahn closed 2 months ago
This is happening too often and I'm tempted to say bash 4 is unsupported until #3166 is the default completion system since that at least reduces the risk we'll run into issues.
Sorry for the inconvenience.
I thought -v
was already supported on bash 4.0, but actually only available on 5.0 or later.
I submitted #5444 to fix this. Feel free to use it.
This is happening too often and I'm tempted to say bash 4 is unsupported until https://github.com/clap-rs/clap/issues/3166 is the default completion system since that at least reduces the risk we'll run into issues.
I agree with it. This time it's easy to fix that, but caring about unsupported features on (very) older versions anytime is generally a hard work.
(By the way, I'm personally looking forward to native completion system!)
Thanks for fixing this!
Please complete the following tasks
Rust Version
Clap Version
4.5.3
Minimal reproducible code
Steps to reproduce the bug with the above code
(on a Mac)
Actual Behaviour
Output:
Expected Behaviour
Output:
Additional Context
On clap_complete 4.4.9 this works, on 4.4.10 this fails. I think that this is a regression introduced by https://github.com/clap-rs/clap/pull/5336 . So the issue is probably the same as https://github.com/clap-rs/clap/issues/5190 , which was fixed by https://github.com/clap-rs/clap/pull/5278.
Debug Output