diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2016-06-10 15:28:05 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-10 10:46:33 -0400 |
commit | 797c3c54e835e5c5131f38036aca61b0dae02260 (patch) | |
tree | e47f9bf0da873683c073608814397b4735bfd243 /Auxiliary | |
parent | b08cae9b0e9bad96e4615c1bbf9bbd00802e6985 (diff) | |
download | cmake-797c3c54e835e5c5131f38036aca61b0dae02260.tar.gz |
bash-completion: Add cpack --help-{manual,module,policy,property}
Diffstat (limited to 'Auxiliary')
-rw-r--r-- | Auxiliary/bash-completion/cpack | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Auxiliary/bash-completion/cpack b/Auxiliary/bash-completion/cpack index 05e0e93ec7..cf5751fa61 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" ) ) |