[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-275-g3d36625
Ville Skyttä
ville.skytta at iki.fi
Sun May 8 19:18:29 UTC 2011
The following commit has been merged in the master branch:
commit 3d366255a202b880bce174e6e6fd3e26d37e2ea5
Author: Ville Skyttä <ville.skytta at iki.fi>
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
More information about the Bash-completion-commits
mailing list