We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_comp_delimited
1 parent 7777278 commit 2157f1cCopy full SHA for 2157f1c
completions/cppcheck
@@ -16,17 +16,8 @@ _comp_cmd_cppcheck()
16
return
17
;;
18
--enable)
19
- # split comma-separated list
20
- local split=""
21
- if [[ $cur == ?*,* ]]; then
22
- prev="${cur%,*}"
23
- cur="${cur##*,}"
24
- split="set"
25
- fi
26
- _comp_compgen -- -W 'all warning style performance portability
27
- information unusedFunction missingInclude' &&
28
- [[ $split ]] &&
29
- _comp_compgen -Rv COMPREPLY -- -P "$prev," -W '"${COMPREPLY[@]}"'
+ _comp_delimited , -W 'all warning style performance portability
+ information unusedFunction missingInclude'
30
31
32
--error-exitcode)
0 commit comments