diff --git a/scripts/completions/zsh-completion.zsh b/scripts/completions/zsh-completion.zsh index 506cf4a..faa1501 100644 --- a/scripts/completions/zsh-completion.zsh +++ b/scripts/completions/zsh-completion.zsh @@ -1,6 +1,11 @@ #compdef ybcon +completeyfile='filename:_path_files -/ -g "*.ybcon"' _ybcon() { - _arguments '-h[Print the help screen]' '--help[Print the help screen]' '--version[Print the version]' '-p[Enable printing the transpilation result to stdout]:filename:_path_files -/ -g "*.ybcon"' + _arguments \ + '( - 1)'{-h,--help}'[Print the help screen]' \ + '( - 1)'--version'[Print the version]' \ + '( - 1)'{-p,--printresult}'[Enable printing the transpilation result to stdout]' \ + "*:$completeyfile" return 0 }