Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion confusion around the _arguments -A flag
- X-seq: zsh-users 23534
- From: dana <dana@xxxxxxx>
- To: Mal Graty <mal@xxxxxxx>
- Subject: Re: Completion confusion around the _arguments -A flag
- Date: Wed, 25 Jul 2018 11:36:10 -0500
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0Ct8AJJDycVdCn8N1Esx5w2lnL4gbY60dbk6jG9i4j4=; b=maBzrtVoB+3ExFwhDoFfP0LFoXKVZdwRDEoL8WYdl4v0yGaW+TORYhA9TmaOUq7Uy8 vyUJiqJNVDjN7sav0ZPx0YAt7W1navFv3HawfruRtL9vfa+aiKl23MBlu0uf1NSis0i5 MYzng9nROfKxjVU4LGp2ApZi2324QIX+/Rn6PJWL/t4b2I6ISqU616+xjlSP20lwCqz8 NaV5C6D3JCxMkCJgKZjHLD4BX8cnVLzfbut2VWcHv+0PTrGNrq42ec+bKhLBcVsAyAQS pMuRmZsb62N1aU+1I09vJUdoLqZAIlKS/8DBQ4Y/rrHxj5c0ZjEjPaVxdC2YJVs+iHrK Vlkw==
- In-reply-to: <CAJCae=DDuU=pGpeG7x6L-v5k7ftw0MJbp-CF6_C2E_n4e_fXvg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAJCae=CUioiTBB8wc8vpzYii3_5T3VJjzqAOekKvRs=-=kVLWQ@mail.gmail.com> <CAJCae=DDuU=pGpeG7x6L-v5k7ftw0MJbp-CF6_C2E_n4e_fXvg@mail.gmail.com>
On 22 Jul 2018, at 10:16, Mal Graty <mal@xxxxxxx> wrote:
>I have a binary (call it foo) with two, mutually exclusive, optional flags
>(that must come first) and a required arg. The problem I'm having is that
>when omitting both flags and using just the arg the completion tries to add
>one of the flags after it. Reading the docs lead me to the -A flag, however
>it doesn't seem to be preventing the flag completion despite being after
>the first arg. I'm hoping I've just overlooked something but for the life
>of me I can't see it.
For whatever it's worth, i don't see anything obviously wrong with your
function, and it works fine when i test it on 5.5. Maybe you have an option
enabled that changes the behaviour, idk
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author