snownews: Use _parse_help.

This commit is contained in:
Ville Skyttä 2011-05-20 20:35:40 +03:00
parent 6e7359f69c
commit 7324767680

View File

@ -9,8 +9,7 @@ _snownews()
if [[ "$cur" == -* ]]; then
# return list of available options
COMPREPLY=( $( compgen -W '--update --help --version \
--disable-versioncheck -u -h -V' -- "$cur"))
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
fi
} &&
complete -F _snownews snownews