zsh-users
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Mal Graty <mal@idio.ai>
Cc: zsh-users@zsh.org
Subject: Re: Completion confusion around the _arguments -A flag
Date: Wed, 25 Jul 2018 11:36:10 -0500	[thread overview]
Message-ID: <4B46A103-4424-48D6-8585-1EC273B20584@dana.is> (raw)
In-Reply-To: <CAJCae=DDuU=pGpeG7x6L-v5k7ftw0MJbp-CF6_C2E_n4e_fXvg@mail.gmail.com>

On 22 Jul 2018, at 10:16, Mal Graty <mal@idio.ai> 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


  reply	other threads:[~2018-07-25 16:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJCae=CUioiTBB8wc8vpzYii3_5T3VJjzqAOekKvRs=-=kVLWQ@mail.gmail.com>
2018-07-22 15:16 ` Fwd: " Mal Graty
2018-07-25 16:36   ` dana [this message]
2018-07-27 17:05     ` Mal Graty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B46A103-4424-48D6-8585-1EC273B20584@dana.is \
    --to=dana@dana.is \
    --cc=mal@idio.ai \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).