Don't show flags in native completion that are already present #5515
Labels
A-completion
Area: completion generator
C-bug
Category: Updating dependencies
E-easy
Call for participation: Experience needed to fix: Easy / not much
Please complete the following tasks
Rust Version
1.76
Clap Version
4.5.2
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
Expected Behaviour
Additional Context
Using
--mode
is invalid, so we should not complete it. Obviously flags that accept multiple values should keep the existing behavior.Debug Output
No response
The text was updated successfully, but these errors were encountered: