https://bugs.freedesktop.org/show_bug.cgi?id=98639
--- Comment #2 from [email protected] ---
Urgh, I realized the function can be written easier, without the ugly shift
counting:
_pasuspender_completion() {
# parenthesis expressions specify which options should not get suggested
afterwards
# e.g. after -s, help and version will not get suggested, -- remains the
only valid argument
# after "--" external commands get suggested
_arguments -C \
'(-)'{-h,--help}'[display help and exit]' \
'(-)--version[show version and exit]' \
'(-h --help --version -s --server)'{-s,--server=}'[name of server to
connect to]:host:_hosts' \
'(-)--[program]:program: _command_names -e:*::program arguments:
_normal'
}
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug._______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs