Update bash completion file in order to handle new CPack doc options.

This commit is contained in:
Eric NOULARD 2012-01-22 13:37:39 +01:00
parent 1629615a10
commit 751713f54b
1 changed files with 10 additions and 0 deletions

View File

@ -130,6 +130,16 @@ _cpack()
COMPREPLY=( $(compgen -f ${cur}) ) COMPREPLY=( $(compgen -f ${cur}) )
return 0 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 esac