summaryrefslogtreecommitdiffstats
path: root/Auxiliary/bash-completion
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2016-06-10 13:28:05 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-10 14:46:19 (GMT)
commitb08cae9b0e9bad96e4615c1bbf9bbd00802e6985 (patch)
tree664b3cfa2d4c58877dc1fd0d176f8d6eec85204d /Auxiliary/bash-completion
parent48cb388ead09794aae01328d83620e10a8f7636b (diff)
downloadCMake-b08cae9b0e9bad96e4615c1bbf9bbd00802e6985.zip
CMake-b08cae9b0e9bad96e4615c1bbf9bbd00802e6985.tar.gz
CMake-b08cae9b0e9bad96e4615c1bbf9bbd00802e6985.tar.bz2
bash-completion: Add ctest --help-{manual,module,policy,property,variable}
Diffstat (limited to 'Auxiliary/bash-completion')
-rw-r--r--Auxiliary/bash-completion/ctest26
1 files changed, 26 insertions, 0 deletions
diff --git a/Auxiliary/bash-completion/ctest b/Auxiliary/bash-completion/ctest
index 387672a..49343bb 100644
--- a/Auxiliary/bash-completion/ctest
+++ b/Auxiliary/bash-completion/ctest
@@ -72,11 +72,37 @@ _ctest()
COMPREPLY=( $( compgen -W '0 1' -- "$cur" ) )
return
;;
+
--help-command)
COMPREPLY=( $( compgen -W '$( ctest --help-command-list 2>/dev/null|
grep -v "^ctest version " )' -- "$cur" ) )
return
;;
+ --help-manual)
+ COMPREPLY=( $( compgen -W '$( ctest --help-manual-list 2>/dev/null|
+ grep -v "^ctest version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
+ return
+ ;;
+ --help-module)
+ COMPREPLY=( $( compgen -W '$( ctest --help-module-list 2>/dev/null|
+ grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-policy)
+ COMPREPLY=( $( compgen -W '$( ctest --help-policy-list 2>/dev/null |
+ grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-property)
+ COMPREPLY=( $( compgen -W '$( ctest --help-property-list \
+ 2>/dev/null | grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-variable)
+ COMPREPLY=( $( compgen -W '$( ctest --help-variable-list \
+ 2>/dev/null | grep -v "^ctest version " )' -- "$cur" ) )
+ return
+ ;;
esac
if [[ "$cur" == -* ]]; then