Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
When _alternative separates the options?
- X-seq: zsh-users 24368
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: When _alternative separates the options?
- Date: Sun, 20 Oct 2019 15:08:25 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=6xfzWgfhHDg0gsKGv3qXr2PE6jM1Fex3YTb/ioO53NU=; b=kULTnGR1cY4ONNNtAJ79SJH/rWD30cyfv6Xjy9qDQ6vFybZGKNIncmtk/6/m74UqlJ OvoAiCIyduYKBm/aJ0qkTtpDqHp/pIe/TBxdHH36kTDVaWv8nF7o31CRIBmGfaGOAuHR 6hsZIDe50dnFcT0eF+HLRFkiXVhVf29U70kj+JTCUrdnpwiwj5G04TiZxZ7SZLVbCZ9C ALgSL9Q8RFMoW6YBMvZpsSB9MkbphJ+tLkdtRYQnGCnTiNPrRjsF4PvLB0WbuMAbn8Q+ fvjCCfqCZ2u7zTuhoAUu9zsP1vYgXMz2Gr0a3Uaw+NGf9lJQZPgnrPaMFGoETZbHcheA xakg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
when writing:
https://github.com/psprint/zunit/blob/zunit-completion/_zunit
I've had a problem: the options given to _alternative were merged
together, i.e. it was looking like this:
zunit options
zunit command
--allow-risky -- Supress warnings generated for risky tests
init -- Bootstrap zunit in a new project
...
instead of:
zunit options
--allow-risky -- Supress warnings generated for risky tests
...
zunit command
init -- Bootstrap zunit in a new project
...
However, the problem resolved itself when I've separated the options
from the form:
"--help,-h":"Output help text and exit"
to the form:
"--help":"Output help text and exit"
"-h":"Output help text and exit"
in the array. I would now like to separate the directories and plugins
in the following _alternative call:
https://github.com/zdharma/zplugin/blob/208092/_zplugin#L90
How to do this?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author