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

This commit is contained in:
Eric NOULARD
2016-06-10 10:45:25 -04:00
committed by Brad King
parent f67afbdc4a
commit 48cb388ead
+2 -2
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)