bash-completion: Fix cmake --help-policy lookup

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

View File

@ -132,8 +132,8 @@ _cmake()
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)