Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:reply-to:to:from:subject:organization:message-id
         :date:user-agent:mime-version:content-transfer-encoding;
        bh=hPBF/eQOb9pX6WLbSVFwc9LBT1rbl19AyGsTLyVoSRE=;
        b=WstUBfhIkx7RbB+1Drkq0AhhNP53WvIOSn1lX5Lic/kb2KfQMDsd64O/Ip2RgFSEkX
         39ore8oA3/fyChwAB1m/vBUPaOCG0m9XLlup/fMz+jMa1PQ3NWTMFGJ5TwfFmyICwdSt
         TWA7th0fRidE2jw56BSMzORmesb0Ji1al2G2783x9qdgnY3EVyp25VMwpYzCyl/Vxznv
         ao5dQOOen1HLtyVp/dkPYpVyQ/xy8fq90glHm+FkvbZq3KDVhsqjPtfCQQ0Yf2f3rms6
         te1gWtjGtLapU67uSCSNoTry/HAaXwtgQc/CzFHSzECQ5hMObvyWm6OzvOCwSvYHchZS
         9yHg==
X-Gm-Message-State: ALyK8tJxILXhwcPOT2CDQ7LA119c7SZ0DowjUd9tBs/OlU0KLCD49cBe3qlPiP4kNrETeDZT
X-Received: by 10.194.41.35 with SMTP id c3mr8923842wjl.91.1465475080022;
        Thu, 09 Jun 2016 05:24:40 -0700 (PDT)
Reply-To: Marko Myllynen <myllynen@redhat.com>
To: zsh workers <zsh-workers@zsh.org>
From: Marko Myllynen <myllynen@redhat.com>
Subject: _values and end of options
Organization: Red Hat
Message-ID: <57596005.3070100@redhat.com>
Date: Thu, 9 Jun 2016 15:24:37 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Seq: zsh-workers 38638

Hi,

Below is a minimal example created based on a larger completion:

#compdef foo

local -a opts
opts=( -a -b -c -1 -2 -3 )
_values -w opts $opts

Otherwise this works nicely (each of the options is completed only once)
but -1 -2 are missing from offered options (see _values). I can use --
to have them included as well (_values -w opts -- $opts) but then -- is
also offered.

Can _values be used reliably in cases where there might be options as
values? Or is there a better way to achieve this with compadd or such
for the above case?

Thanks,

-- 
Marko Myllynen

