cksfv: Use _parse_help, add -g argument completion.
This commit is contained in:
parent
bb050024d5
commit
44a387f216
@ -8,12 +8,12 @@ _cksfv()
|
||||
_init_completion || return
|
||||
|
||||
if [ $cword -eq 1 ]; then
|
||||
COMPREPLY=( $( compgen -W '-C -f -i -q -v' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
case "$prev" in
|
||||
-C)
|
||||
-C|-g)
|
||||
_filedir -d
|
||||
return 0
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user