Fix "--printresult" and "--target=" not being completed after other arguments in zsh.
This commit is contained in:
parent
15637db2cc
commit
ee6817c0e9
|
@ -2,10 +2,10 @@
|
||||||
completeyfile='filename:_path_files -/ -g "*.ybcon"'
|
completeyfile='filename:_path_files -/ -g "*.ybcon"'
|
||||||
_ybcon() {
|
_ybcon() {
|
||||||
_arguments \
|
_arguments \
|
||||||
'( - 1)'{-h,--help}'[Print the help screen]' \
|
'( - 0)'{-h,--help}'[Print the help screen]' \
|
||||||
'( - 1)'--version'[Print the version]' \
|
'( - 0)'--version'[Print the version]' \
|
||||||
'( - 1)'--target='[Set the transpilation target]:language:(lua js py)' \
|
--target='[Set the transpilation target]:language:(lua js py)' \
|
||||||
'( - 1)'{-p,--printresult}'[Enable printing the transpilation result to stdout]' \
|
{-p,--printresult}'[Enable printing the transpilation result to stdout]' \
|
||||||
"*:$completeyfile"
|
"*:$completeyfile"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue