xmllint: Use _parse_help().
This commit is contained in:
parent
622d2bd25f
commit
3d366255a2
@ -35,9 +35,8 @@ _xmllint()
|
||||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '$( xmllint --help 2>&1 | \
|
||||
sed -ne "s/^[[:space:]]*\(--[^[:space:]:]*\).*/\1/p" ) \
|
||||
-o' -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
||||
COMPREPLY=( "${COMPREPLY[@]%:}" )
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user