zsh-workers
 help / color / mirror / code / Atom feed
* _arguments not works as expected. Bug?
@ 2014-09-25 16:51 Vasiliy Ivanov
  2014-09-26  7:02 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Vasiliy Ivanov @ 2014-09-25 16:51 UTC (permalink / raw)
  To: zsh-workers

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>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-28 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-25 16:51 _arguments not works as expected. Bug? Vasiliy Ivanov
2014-09-26  7:02 ` Bart Schaefer
2014-09-28 10:10   ` Vasiliy Ivanov
2014-09-28 18:47     ` Bart Schaefer

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).