diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-01-03 22:46:09 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-01-03 22:48:20 +0100 |
commit | 9411f76977926a5a99ff5fbda7417c2af21f4dcd (patch) | |
tree | 01a971ba177cf4f4c88b0fa3f0805dbfcc14037b /debian | |
parent | d5230651d108dabbe632b505dc0c89bc77ff561c (diff) |
bash completion: parse short options too
Diffstat (limited to 'debian')
-rw-r--r-- | debian/git-buildpackage.bash-completion | 2 |
1 files changed, 1 insertions, 1 deletions
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' } |