snownews: Use _parse_help.
This commit is contained in:
parent
6e7359f69c
commit
7324767680
@ -9,8 +9,7 @@ _snownews()
|
|||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
# return list of available options
|
# return list of available options
|
||||||
COMPREPLY=( $( compgen -W '--update --help --version \
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||||
--disable-versioncheck -u -h -V' -- "$cur"))
|
|
||||||
fi
|
fi
|
||||||
} &&
|
} &&
|
||||||
complete -F _snownews snownews
|
complete -F _snownews snownews
|
||||||
|
Loading…
x
Reference in New Issue
Block a user