[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-402-g602e983
Igor Murzov
e-mail at date.by
Sun Jul 17 22:09:25 UTC 2011
The following commit has been merged in the master branch:
commit 002a5a45531aed3fd5d70119df85361e52827030
Author: Igor Murzov <e-mail at date.by>
Date: Sun Jul 17 18:14:33 2011 +0400
kcov: Add --path-strip-level option (added in kcov-v7)
Also provide more meaningful completions for --sort-type option.
And improve test.
diff --git a/completions/kcov b/completions/kcov
index 3bad12d..de421ff 100644
--- a/completions/kcov
+++ b/completions/kcov
@@ -11,14 +11,15 @@ _kcov()
return 0
;;
--sort-type|-s)
- COMPREPLY=( $( compgen -W 'f p' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'filename percentage' -- "$cur" ) )
return 0
;;
--include-path|--exclude-path)
_filedir
return 0
;;
- --limits|-l|--title|-t|--include-pattern|--exclude-pattern)
+ --limits|-l|--title|-t|--include-pattern|--exclude-pattern|\
+ --path-strip-level)
# argument required but no completions available
return 0
;;
diff --git a/test/lib/completions/kcov.exp b/test/lib/completions/kcov.exp
index f2a5031..c39f53e 100644
--- a/test/lib/completions/kcov.exp
+++ b/test/lib/completions/kcov.exp
@@ -17,10 +17,8 @@ assert_complete_any "kcov "
sync_after_int
-set test "--<TAB> should complete all long options"
-set options [list --help --pid= --sort-type= --limits= --title= --include-path=\
- --exclude-path= --include-pattern= --exclude-pattern=]
-assert_complete $options "kcov --" $test
+set test "--exclude-patter<TAB> should complete \"--exclude-pattern=\""
+assert_complete "--exclude-pattern=" "kcov --exclude-patter" $test -nospace
sync_after_int
--
bash-completion
More information about the Bash-completion-commits
mailing list