summaryrefslogtreecommitdiffstats
path: root/Docs
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2012-01-22 12:37:39 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2012-01-22 12:37:39 (GMT)
commit751713f54b70d955334818f534139f9b59cc66e6 (patch)
treed5ce9f11ad6bdb9d2996a9f41c66979a96b75423 /Docs
parent1629615a10df10296ba6588f66a680eed424f9ba (diff)
downloadCMake-751713f54b70d955334818f534139f9b59cc66e6.zip
CMake-751713f54b70d955334818f534139f9b59cc66e6.tar.gz
CMake-751713f54b70d955334818f534139f9b59cc66e6.tar.bz2
Update bash completion file in order to handle new CPack doc options.
Diffstat (limited to 'Docs')
-rw-r--r--Docs/cmake-completion10
1 files changed, 10 insertions, 0 deletions
diff --git a/Docs/cmake-completion b/Docs/cmake-completion
index d82d608..d70ac24 100644
--- a/Docs/cmake-completion
+++ b/Docs/cmake-completion
@@ -130,6 +130,16 @@ _cpack()
COMPREPLY=( $(compgen -f ${cur}) )
return 0
;;
+ --help-variable)
+ local running=$(for x in `cpack --help-variable-list | grep -v "cpack version" `; do echo ${x} ; done )
+ COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
+ return 0
+ ;;
+ --help-command)
+ local running=$(for x in `cpack --help-command-list | grep -v "cpack version" `; do echo ${x} ; done )
+ COMPREPLY=( $(compgen -W "${running}" -- ${cur}) )
+ return 0
+ ;;
*)
;;
esac