3 # Completion for dbus python client
4 # http://code.google.com/p/dbus-tools/source/browse/trunk/_dbus
9 for word in $words[2,-2] ; do
20 if (( opts == count - 2 )) ; then
21 if [[ $words[-1] = -* ]] ; then
23 {-a,--all}'[Equivalent to -e -s -t -u]' \
24 {-e,--empty}'[Also show empty services/objects]' \
25 {-h,--help}'[Print help]' \
26 {-s,--signals}'[Print signals]' \
27 {-t,--activatables}'[Also show activatables services]' \
28 {-u,--unnamed}'[Also show unnamed services]' \
29 {-y,--system-bus}'[Use system bus]'
34 case $((count - 2 - $opts)) in
45 _wanted file expl "`dbus -c $words[2,-2]`" _files
49 compadd `dbus -c $words[2,-2]`