zsh-workers
 help / color / mirror / code / Atom feed
* possible bug in _arguments?
@ 2018-12-23 22:34 Max Katsev
  2018-12-24  5:58 ` dana
  0 siblings, 1 reply; 2+ messages in thread
From: Max Katsev @ 2018-12-23 22:34 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

I want to have completion for a command that looks like "command [optional]
required" (i.e. possible completions are either "command required" or
"command optional required").
My understanding is that "_arguments '::message:(optional)'
':message:(required)'" should achieve this effect.
However when I'm trying to use it on zsh 5.6.2, in addition to the expected
commandlines, it also allows to complete "command required required" where
the required argument is repeated twice (but not more). Is this a bug or am
I missing something? Is there another way to get what I want?

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

end of thread, other threads:[~2018-12-24  5:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-23 22:34 possible bug in _arguments? Max Katsev
2018-12-24  5:58 ` dana

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