diff --git a/src/completions/zsh.rs b/src/completions/zsh.rs index 8fbc1ff6..c73a9878 100644 --- a/src/completions/zsh.rs +++ b/src/completions/zsh.rs @@ -371,7 +371,7 @@ fn write_opts_of(p: &Parser) -> String { } if let Some(long) = o.long() { let l = format!( - "'{conflicts}{multiple}--{arg}+[{help}]{possible_values}' \\", + "'{conflicts}{multiple}--{arg}=[{help}]{possible_values}' \\", conflicts = conflicts, multiple = multiple, arg = long, diff --git a/tests/completions.rs b/tests/completions.rs index 1afc6bcb..953b68c2 100644 --- a/tests/completions.rs +++ b/tests/completions.rs @@ -108,7 +108,7 @@ _myapp() { case $line[1] in (test) _arguments -s -S -C \ -'--case+[the case to test]' \ +'--case=[the case to test]' \ '-h[Prints help information]' \ '--help[Prints help information]' \ '-V[Prints version information]' \ @@ -397,7 +397,7 @@ _my_app() { case $line[1] in (test) _arguments -s -S -C \ -'--case+[the case to test]' \ +'--case=[the case to test]' \ '-h[Prints help information]' \ '--help[Prints help information]' \ '-V[Prints version information]' \ @@ -406,7 +406,7 @@ _arguments -s -S -C \ ;; (some_cmd) _arguments -s -S -C \ -'--config+[the other case to test]' \ +'--config=[the other case to test]' \ '-h[Prints help information]' \ '--help[Prints help information]' \ '-V[Prints version information]' \