bash-completion: Fix cmake --help-policy lookup
This commit is contained in:
parent
f67afbdc4a
commit
48cb388ead
|
@ -132,8 +132,8 @@ _cmake()
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--help-policy)
|
--help-policy)
|
||||||
COMPREPLY=( $( compgen -W '$( cmake --help-policies 2>/dev/null |
|
COMPREPLY=( $( compgen -W '$( cmake --help-policy-list 2>/dev/null |
|
||||||
grep "^ CMP" 2>/dev/null )' -- "$cur" ) )
|
grep -v "^cmake version " )' -- "$cur" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
--help-property)
|
--help-property)
|
||||||
|
|
Loading…
Reference in New Issue