Use _split_longopt for reportbug.
This commit is contained in:
parent
215cdb9cf4
commit
42ca281cb7
4
CHANGES
4
CHANGES
@ -65,8 +65,8 @@ bash-completion (1.x)
|
|||||||
take arguments in both "--foo bar" and "--foo=bar" formats.
|
take arguments in both "--foo bar" and "--foo=bar" formats.
|
||||||
* Use _split_longopt to improve and clean up aspell, chgrp, chown, chkconfig,
|
* Use _split_longopt to improve and clean up aspell, chgrp, chown, chkconfig,
|
||||||
cpio, dpkg, iptables, make, mc, mii-diag, mii-tool, mkinitrd, pkg-config,
|
cpio, dpkg, iptables, make, mc, mii-diag, mii-tool, mkinitrd, pkg-config,
|
||||||
postgresql, quota, samba, smartctl, yum, and generic long option completion
|
postgresql, quota, reportbug, samba, smartctl, yum, and generic long option
|
||||||
(Alioth: #311398).
|
completion (Alioth: #311398).
|
||||||
* Add chown --from and --reference value completions.
|
* Add chown --from and --reference value completions.
|
||||||
* Add chgrp --reference value completion.
|
* Add chgrp --reference value completion.
|
||||||
* Do not assume all --foo= options take filenames in generic long option
|
* Do not assume all --foo= options take filenames in generic long option
|
||||||
|
@ -86,12 +86,14 @@ complete -F _reportbug $filenames reportbug
|
|||||||
have querybts &&
|
have querybts &&
|
||||||
_querybts()
|
_querybts()
|
||||||
{
|
{
|
||||||
local cur prev
|
local cur prev split=false
|
||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
||||||
|
_split_longopt && split=true
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
-B|--bts)
|
-B|--bts)
|
||||||
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" -- \
|
COMPREPLY=( $( compgen -W "debian guug kde mandrake help" -- \
|
||||||
@ -102,12 +104,12 @@ _querybts()
|
|||||||
COMPREPLY=($( compgen -W "newt text gnome" -- $cur ))
|
COMPREPLY=($( compgen -W "newt text gnome" -- $cur ))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
$split && return 0
|
||||||
|
|
||||||
COMPREPLY=($( compgen -W '-h --help -v --version -A --archive \
|
COMPREPLY=($( compgen -W '-h --help -v --version -A --archive \
|
||||||
-B --bts -l --ldap --no-ldap --proxy= --http_proxy= \
|
-B --bts -l --ldap --no-ldap --proxy --http_proxy \
|
||||||
-s --source -w --web -u --ui --interface \
|
-s --source -w --web -u --ui --interface \
|
||||||
wnpp boot-floppies kernel bugs.debian.org \
|
wnpp boot-floppies kernel bugs.debian.org \
|
||||||
cdimage.debian.org general installation-reports \
|
cdimage.debian.org general installation-reports \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user