mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47:22 +00:00
fix a tiny bug with bash
This commit is contained in:
parent
a3adbf86de
commit
bc561bcbf3
1 changed files with 5 additions and 2 deletions
|
@ -360,8 +360,11 @@ __start_%[1]s()
|
||||||
__%[1]s_process_completion_results
|
__%[1]s_process_completion_results
|
||||||
}
|
}
|
||||||
|
|
||||||
# compopts are already set, we don't have to specify them here
|
if [[ $(type -t compopt) = "builtin" ]]; then
|
||||||
complete -F __start_%[1]s %[1]s
|
complete -o default -F __start_%[1]s %[1]s
|
||||||
|
else
|
||||||
|
complete -F __start_%[1]s %[1]s
|
||||||
|
fi
|
||||||
|
|
||||||
# ex: ts=4 sw=4 et filetype=sh
|
# ex: ts=4 sw=4 et filetype=sh
|
||||||
`, name, compCmd,
|
`, name, compCmd,
|
||||||
|
|
Loading…
Add table
Reference in a new issue