mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 06:44:16 +00:00
fix: Make cmd a local var in bash completion
This commit is contained in:
parent
9f4f341604
commit
8b455d28e7
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ impl Generator for Bash {
|
|||
buf,
|
||||
format!(
|
||||
"_{name}() {{
|
||||
local i cur prev opts cmds
|
||||
local i cur prev opts cmd
|
||||
COMPREPLY=()
|
||||
cur=\"${{COMP_WORDS[COMP_CWORD]}}\"
|
||||
prev=\"${{COMP_WORDS[COMP_CWORD-1]}}\"
|
||||
|
|
Loading…
Reference in a new issue