clap
clap copied to clipboard
clap_complete: zsh completion doesn't add conflicts for group
Please complete the following tasks
- [X] I have searched the discussions
- [X] I have searched the open and rejected issues
Rust Version
rustc 1.62.0 (a8314ef7d 2022-06-27)
Clap Version
3.2.6
Minimal reproducible code
use clap::*;
use clap_complete::{generate, shell};
fn main() {
let mut app = Command::new("test")
.group(ArgGroup::new("gr").args(&["a", "b"]).conflicts_with("c"))
.arg(Arg::new("a").short('a'))
.arg(Arg::new("b").short('b'))
.arg(Arg::new("c").short('c'))
.arg(&c);
app.build();
generate(shell::Zsh, &mut app, app.get_name(), &mut std::io::stdout());
}
Steps to reproduce the bug with the above code
Run code
Actual Behaviour
The zsh completions generated don't account for the conflict between the group and option c.
Expected Behaviour
The zsh completions should specify that the options in the group conflict with option c.
Additional Context
No response
Debug Output
No response