[Bash-completion-devel] fix for xsltproc --norman option

Raphaël Droz raphael.droz at gmail.com
Sat Jul 21 10:55:21 UTC 2012


_parse_help xsltproc overlooks the --norman option
>From xsltproc --help:
>    --profile or --norman : dump profiling informations

This patch fixes the xsltproc completion to manually add it
-------------- next part --------------
diff --git a/completions/xsltproc b/completions/xsltproc
index 7c38591..fdab18b 100644
--- a/completions/xsltproc
+++ b/completions/xsltproc
@@ -38,7 +38,7 @@ _xsltproc()
         return 0
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_help "$1" ) --norman' -- "$cur" ) )
         COMPREPLY=( "${COMPREPLY[@]%:}" )
     else
 	_filedir '@(xsl|xslt|xml)'


More information about the Bash-completion-devel mailing list