From ee6817c0e9275920738db06608c53f7a201945de Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 30 Mar 2021 17:33:52 +0200 Subject: [PATCH] Fix "--printresult" and "--target=" not being completed after other arguments in zsh. --- scripts/completions/zsh-completion.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/completions/zsh-completion.zsh b/scripts/completions/zsh-completion.zsh index e516f96..c770b69 100644 --- a/scripts/completions/zsh-completion.zsh +++ b/scripts/completions/zsh-completion.zsh @@ -2,10 +2,10 @@ completeyfile='filename:_path_files -/ -g "*.ybcon"' _ybcon() { _arguments \ - '( - 1)'{-h,--help}'[Print the help screen]' \ - '( - 1)'--version'[Print the version]' \ - '( - 1)'--target='[Set the transpilation target]:language:(lua js py)' \ - '( - 1)'{-p,--printresult}'[Enable printing the transpilation result to stdout]' \ + '( - 0)'{-h,--help}'[Print the help screen]' \ + '( - 0)'--version'[Print the version]' \ + --target='[Set the transpilation target]:language:(lua js py)' \ + {-p,--printresult}'[Enable printing the transpilation result to stdout]' \ "*:$completeyfile" return 0 }