snownews: Use _parse_help.
This commit is contained in:
parent
6e7359f69c
commit
7324767680
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user