Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_arguments not works as expected. Bug?
- X-seq: zsh-workers 33249
- From: Vasiliy Ivanov <beelzebubbie.logs@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _arguments not works as expected. Bug?
- Date: Thu, 25 Sep 2014 22:51:16 +0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=LosoB3snKm0kKL9imAkJInVsk8vvdsTH+ysXIamwGR4=; b=prCKY5J1ciFvSmtow8Ytf9fHiBlthONGHw7JvtY9LGpv+GSK5Ag8m1rAs4j6eHFL6w iOxvWRMnqJUarGw1DVA6MAQccbfwNv3hqVTZiahWS/lnMtGIJagi+K5tRr/uy2MjM4OX 2SiD6hxGdW8CSjifSEIpoePtCbUSAymsbCUMXIGQl9YZPoUvGjXoErpBa+otZaDb1WeW xeURSuIUqTbU2vNXERYajYHV4bGbgw3k1AcTR33eaSC0rvseEDFXdl28biftaCpibAtA lluG4nF0btchdlXS2cYXIhT3zJB20L7BG2iZ1jDoeZyhKC5phtZpHIf8KEiYhFQfTpvv x5CA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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@xxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author