From: Guido Günther Date: Mon, 3 Jan 2011 21:46:09 +0000 (+0100) Subject: bash completion: parse short options too X-Git-Tag: debian/0.5.14~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9411f76977926a5a99ff5fbda7417c2af21f4dcd;p=tools%2Fgit-buildpackage.git bash completion: parse short options too --- diff --git a/debian/git-buildpackage.bash-completion b/debian/git-buildpackage.bash-completion index c6a1c82..ff71753 100644 --- a/debian/git-buildpackage.bash-completion +++ b/debian/git-buildpackage.bash-completion @@ -16,7 +16,7 @@ _gbp_branches () _gbp_options () { - $1 --help | egrep -o '^ +\-\-[a-z\-]+=?' + $1 --help | sed -ne 's/^ \+\(\(\-[a-z]\), \)\?\(\-\-[a-z\-]\+\=\?\).*/\2 \3/p' }