]>
git.proxmox.com Git - rustc.git/blob - src/vendor/clap/src/completions/macros.rs
3 ($buf
:expr
, $to_w
:expr
) => {
4 match $buf
.write_all($to_w
) {
6 Err(..) => panic
!("Failed to write to completions file"),
11 macro_rules
! get_zsh_arg_conflicts
{
12 ($p
:ident
, $arg
:ident
, $msg
:ident
) => {
13 if let Some(conf_vec
) = $arg
.blacklist() {
15 for arg_name
in conf_vec
{
16 let arg
= $p
.find_any_arg(arg_name
).expect($msg
);
17 if let Some(s
) = arg
.short() {
18 v
.push(format
!("-{}", s
));
20 if let Some(l
) = arg
.long() {
21 v
.push(format
!("--{}", l
));