mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 10:51:51 +00:00
TOOLS/zsh.pl: complete multiple values for ao, vo, af, vf
It still doesn't deal with sub-options, but that's for another day.
This commit is contained in:
parent
48dafda7e9
commit
8158dfc9e8
30
TOOLS/zsh.pl
30
TOOLS/zsh.pl
@ -82,39 +82,27 @@ $opts_str
|
|||||||
|
|
||||||
case \$state in
|
case \$state in
|
||||||
ao)
|
ao)
|
||||||
local -a values
|
_values -s , 'audio outputs' \\
|
||||||
values=(
|
|
||||||
$ao_str
|
$ao_str
|
||||||
)
|
&& rc=0
|
||||||
|
|
||||||
_describe -t values 'audio outputs' values && rc=0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
vo)
|
vo)
|
||||||
local -a values
|
_values -s , 'video outputs' \\
|
||||||
values=(
|
|
||||||
$vo_str
|
$vo_str
|
||||||
)
|
&& rc=0
|
||||||
|
|
||||||
_describe -t values 'video outputs' values && rc=0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
af)
|
af)
|
||||||
local -a values
|
_values -s , 'audio filters' \\
|
||||||
values=(
|
|
||||||
$af_str
|
$af_str
|
||||||
)
|
&& rc=0
|
||||||
|
|
||||||
_describe -t values 'audio filters' values && rc=0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
vf)
|
vf)
|
||||||
local -a values
|
_values -s , 'video filters' \\
|
||||||
values=(
|
|
||||||
$vf_str
|
$vf_str
|
||||||
)
|
&& rc=0
|
||||||
|
|
||||||
_describe -t values 'video filters' values && rc=0
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
profile|show-profile)
|
profile|show-profile)
|
||||||
@ -230,7 +218,7 @@ sub parse_opts {
|
|||||||
if (defined $2) {
|
if (defined $2) {
|
||||||
my $desc = $2;
|
my $desc = $2;
|
||||||
$desc =~ s/\:/\\:/g;
|
$desc =~ s/\:/\\:/g;
|
||||||
$entry .= ':' . $desc;
|
$entry .= "[$desc]";
|
||||||
}
|
}
|
||||||
|
|
||||||
push @list, $entry
|
push @list, $entry
|
||||||
|
Loading…
Reference in New Issue
Block a user