bash-completion: Add cmake --help-manual

This commit is contained in:
Eric NOULARD 2016-06-10 15:28:05 +02:00 committed by Brad King
parent 9d81f1b3aa
commit f67afbdc4a
1 changed files with 5 additions and 0 deletions

View File

@ -121,6 +121,11 @@ _cmake()
grep -v "^cmake version " )' -- "$cur" ) ) grep -v "^cmake version " )' -- "$cur" ) )
return 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) --help-module)
COMPREPLY=( $( compgen -W '$( cmake --help-module-list 2>/dev/null| COMPREPLY=( $( compgen -W '$( cmake --help-module-list 2>/dev/null|
grep -v "^cmake version " )' -- "$cur" ) ) grep -v "^cmake version " )' -- "$cur" ) )