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:33 (GMT)
commit797c3c54e835e5c5131f38036aca61b0dae02260 (patch)
treee47f9bf0da873683c073608814397b4735bfd243 /Auxiliary/bash-completion
parentb08cae9b0e9bad96e4615c1bbf9bbd00802e6985 (diff)
downloadCMake-797c3c54e835e5c5131f38036aca61b0dae02260.zip
CMake-797c3c54e835e5c5131f38036aca61b0dae02260.tar.gz
CMake-797c3c54e835e5c5131f38036aca61b0dae02260.tar.bz2
bash-completion: Add cpack --help-{manual,module,policy,property}
Diffstat (limited to 'Auxiliary/bash-completion')
-rw-r--r--Auxiliary/bash-completion/cpack20
1 files changed, 20 insertions, 0 deletions
diff --git a/Auxiliary/bash-completion/cpack b/Auxiliary/bash-completion/cpack
index 05e0e93..cf5751f 100644
--- a/Auxiliary/bash-completion/cpack
+++ b/Auxiliary/bash-completion/cpack
@@ -48,6 +48,26 @@ _cpack()
grep -v "^cpack version " )' -- "$cur" ) )
return
;;
+ --help-manual)
+ COMPREPLY=( $( compgen -W '$( cpack --help-manual-list 2>/dev/null|
+ grep -v "^cpack version " | sed -e "s/([0-9])$//" )' -- "$cur" ) )
+ return
+ ;;
+ --help-module)
+ COMPREPLY=( $( compgen -W '$( cpack --help-module-list 2>/dev/null|
+ grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-policy)
+ COMPREPLY=( $( compgen -W '$( cpack --help-policy-list 2>/dev/null |
+ grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
+ --help-property)
+ COMPREPLY=( $( compgen -W '$( cpack --help-property-list \
+ 2>/dev/null | grep -v "^cpack version " )' -- "$cur" ) )
+ return
+ ;;
--help-variable)
COMPREPLY=( $( compgen -W '$( cpack --help-variable-list \
2>/dev/null | grep -v "^cpack version " )' -- "$cur" ) )