[Bash-completion-commits] [bash-completion] 01/01: cppcheck: Include - in --file-list completions.
Ville Skyttä
scop-guest at moszumanska.debian.org
Sat Dec 28 08:59:28 UTC 2013
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit 4df6d3ffb86cf2cd9f583d5e927f2661a8a83a84
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Dec 28 10:58:59 2013 +0200
cppcheck: Include - in --file-list completions.
---
completions/cppcheck | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/completions/cppcheck b/completions/cppcheck
index 8585a1f..70b92e7 100644
--- a/completions/cppcheck
+++ b/completions/cppcheck
@@ -6,7 +6,7 @@ _cppcheck()
_init_completion -s || return
case $prev in
- --append|--exitcode-suppressions|--file-list|--rule-file|\
+ --append|--exitcode-suppressions|--rule-file|\
--suppressions-list|--includes-file|--include|-i)
_filedir
return
@@ -32,6 +32,11 @@ _cppcheck()
COMPREPLY=( $( compgen -W '{0..255}' -- "$cur" ) )
return
;;
+ --file-list)
+ _filedir
+ [[ -z $cur || $cur == - ]] && COMPREPLY+=( - )
+ return
+ ;;
-I)
_filedir -d
return
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list