zsh-users
 help / color / mirror / code / Atom feed
* When _alternative separates the options?
@ 2019-10-20 13:08 Sebastian Gniazdowski
  2019-10-20 21:22 ` dana
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Gniazdowski @ 2019-10-20 13:08 UTC (permalink / raw)
  To: Zsh Users

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

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

end of thread, other threads:[~2019-10-21 10:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-20 13:08 When _alternative separates the options? Sebastian Gniazdowski
2019-10-20 21:22 ` dana
2019-10-21  9:42   ` Sebastian Gniazdowski
2019-10-21 10:06     ` Oliver Kiddle
2019-10-21 10:31       ` Sebastian Gniazdowski

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