summaryrefslogtreecommitdiff
path: root/completions/xmllint
diff options
context:
space:
mode:
Diffstat (limited to 'completions/xmllint')
-rw-r--r--completions/xmllint12
1 files changed, 10 insertions, 2 deletions
diff --git a/completions/xmllint b/completions/xmllint
index e9a35d06..f5865b39 100644
--- a/completions/xmllint
+++ b/completions/xmllint
@@ -10,7 +10,7 @@ _xmllint()
_filedir
return
;;
- --path|--dtdvalidfpi|--maxmem|--encode|--pattern)
+ --path|--dtdvalidfpi|--maxmem|--pattern|--xpath)
# argument required but no completions available
return
;;
@@ -30,10 +30,18 @@ _xmllint()
_filedir 'sch?(.gz)'
return
;;
+ --encode)
+ _xfunc iconv _iconv_charsets
+ return
+ ;;
+ --pretty)
+ COMPREPLY=( $(compgen -W '{0..2}' -- "$cur") )
+ return
+ ;;
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
COMPREPLY=( "${COMPREPLY[@]%:}" )
return
fi