zsh-workers
 help / color / mirror / code / Atom feed
From: Vasiliy Ivanov <beelzebubbie.logs@gmail.com>
To: zsh-workers@zsh.org
Subject: _arguments not works as expected. Bug?
Date: Thu, 25 Sep 2014 22:51:16 +0600	[thread overview]
Message-ID: <54244804.8080305@gmail.com> (raw)

I noticed when I use _arguments with -s ("more than one option per word") I see different behaviour
for "single-option" words completion and "multi-option":

#compdef testcmd
_arguments -s \
    "(-q --quiet -v --verbose)"{-v,--verbose} \
    "(-v --verbose)"{\*-q,\*--quiet}

# *-q used for better clearness

% testcmd -q <tab> producing only -q completion as expected (as -q excludes only -v), but:
% testcmd -q<tab> offered both -q and -v (why?)

Maybe I miss something, but I see no reason to allow -qv in this case, but to not allow -q -v.

-- 
Regards,
  Vasiliy Ivanov <beelzebubbie.logs@gmail.com>


             reply	other threads:[~2014-09-25 16:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 16:51 Vasiliy Ivanov [this message]
2014-09-26  7:02 ` Bart Schaefer
2014-09-28 10:10   ` Vasiliy Ivanov
2014-09-28 18:47     ` Bart Schaefer

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=54244804.8080305@gmail.com \
    --to=beelzebubbie.logs@gmail.com \
    --cc=zsh-workers@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).