aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-01-03 22:46:09 +0100
committerGuido Günther <agx@sigxcpu.org>2011-01-03 22:48:20 +0100
commit9411f76977926a5a99ff5fbda7417c2af21f4dcd (patch)
tree01a971ba177cf4f4c88b0fa3f0805dbfcc14037b /debian
parentd5230651d108dabbe632b505dc0c89bc77ff561c (diff)
bash completion: parse short options too
Diffstat (limited to 'debian')
-rw-r--r--debian/git-buildpackage.bash-completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/git-buildpackage.bash-completion b/debian/git-buildpackage.bash-completion
index c6a1c824..ff71753c 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'
}