xmlwf: Use _parse_usage, add -v non-completion.

This commit is contained in:
Ville Skyttä 2011-05-04 23:02:13 +03:00
parent 08a4c0eff5
commit f9293cd3e8

View File

@ -17,11 +17,13 @@ _xmlwf()
ISO-8859-1' -- "$cur" ) )
return 0
;;
-v)
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-c -d -e -m -n -p -r -s -t -v -w \
-x' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
return 0
fi