diff options
author | Brad King <brad.king@kitware.com> | 2016-06-13 13:54:11 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-06-13 13:54:11 (GMT) |
commit | 6b0ab86eb5cfa14343180259fa56cd5b6d5c9a90 (patch) | |
tree | e860b363c418e18d290e5dc5c6ba5d814c4d1d9b /Auxiliary/bash-completion/cmake | |
parent | 7ce354d3acc1b5b572c6c475b1ecc222c1bc12bc (diff) | |
parent | 797c3c54e835e5c5131f38036aca61b0dae02260 (diff) | |
download | CMake-6b0ab86eb5cfa14343180259fa56cd5b6d5c9a90.zip CMake-6b0ab86eb5cfa14343180259fa56cd5b6d5c9a90.tar.gz CMake-6b0ab86eb5cfa14343180259fa56cd5b6d5c9a90.tar.bz2 |
Merge topic 'bash-completion'
797c3c54 bash-completion: Add cpack --help-{manual,module,policy,property}
b08cae9b bash-completion: Add ctest --help-{manual,module,policy,property,variable}
48cb388e bash-completion: Fix cmake --help-policy lookup
f67afbdc bash-completion: Add cmake --help-manual
Diffstat (limited to 'Auxiliary/bash-completion/cmake')
-rw-r--r-- | Auxiliary/bash-completion/cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Auxiliary/bash-completion/cmake b/Auxiliary/bash-completion/cmake index 557f243..6061129 100644 --- a/Auxiliary/bash-completion/cmake +++ b/Auxiliary/bash-completion/cmake @@ -121,14 +121,19 @@ _cmake() grep -v "^cmake version " )' -- "$cur" ) ) return ;; + --help-manual) + COMPREPLY=( $( compgen -W '$( cmake --help-manual-list 2>/dev/null| + grep -v "^cmake version " | sed -e "s/([0-9])$//" )' -- "$cur" ) ) + return + ;; --help-module) COMPREPLY=( $( compgen -W '$( cmake --help-module-list 2>/dev/null| grep -v "^cmake version " )' -- "$cur" ) ) return ;; --help-policy) - COMPREPLY=( $( compgen -W '$( cmake --help-policies 2>/dev/null | - grep "^ CMP" 2>/dev/null )' -- "$cur" ) ) + COMPREPLY=( $( compgen -W '$( cmake --help-policy-list 2>/dev/null | + grep -v "^cmake version " )' -- "$cur" ) ) return ;; --help-property) |