From bb7c45a455318a24d5d7600e7dc434bcd083dbf4 Mon Sep 17 00:00:00 2001 From: Ash Jindal Date: Thu, 26 Sep 2019 12:13:02 +0100 Subject: [PATCH] Fix zsh auto-completion Closes #8158 This fixes the following errors when attempting to auto-complete with packer v.1.4.3: (installed via Homebrew on macOS Mojave) `invalid option definition: -except=[(foo,bar,baz) Validate all builds other than these].` `invalid option definition: -only=[(foo,bar,baz) Validate only these builds].` --- contrib/zsh-completion/_packer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/zsh-completion/_packer b/contrib/zsh-completion/_packer index 7bf52bbba..78b90e437 100644 --- a/contrib/zsh-completion/_packer +++ b/contrib/zsh-completion/_packer @@ -31,8 +31,8 @@ _packer () { local -a validate_arguments && validate_arguments=( '-syntax-only[Only check syntax. Do not verify config of the template.]' - '-except=[(foo,bar,baz) Validate all builds other than these].' - '-only=[(foo,bar,baz) Validate only these builds].' + '-except=[(foo,bar,baz) Validate all builds other than these.]' + '-only=[(foo,bar,baz) Validate only these builds.]' '-var[("key=value") Variable for templates, can be used multiple times.]' '-var-file=[(path) JSON file containing user variables.]' '(-)*:files:_files -g "*.json"'