The following commit has been merged in the master branch:
commit 3d366255a202b880bce174e6e6fd3e26d37e2ea5
Author: Ville Skyttä <[email protected]>
Date: Sun May 8 22:18:03 2011 +0300
xmllint: Use _parse_help().
diff --git a/completions/xmllint b/completions/xmllint
index 8095dae..64f53c2 100644
--- a/completions/xmllint
+++ b/completions/xmllint
@@ -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
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits