clap_complete: incorrect args appear on nested subcommands with the same name #5242
Closed
2 tasks done
Labels
A-completion
Area: completion generator
C-bug
Category: Updating dependencies
E-hard
Call for participation: Experience needed to fix: Hard / a lot
Please complete the following tasks
Rust Version
rustc 1.75.0-beta.4 (bd45872d9 2023-11-28)
Clap Version
Minimal reproducible code
Steps to reproduce the bug with the above code
(only tested in fish shell)
and then test the completions for
stuff config --
andstuff sync config --
Actual Behaviour
it works as expected if you try to complete for
stuff config --
but it also shows it as a possible argument for
stuff sync config
even though running
cargo run -- sync config --test
gives an unexpected argument errorExpected Behaviour
i would expect the
--test
option to not be suggested forstuff sync config
Additional Context
Debug Output
No response
The text was updated successfully, but these errors were encountered: