zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: When _alternative separates the options?
Date: Sun, 20 Oct 2019 15:08:25 +0200	[thread overview]
Message-ID: <CAKc7PVDSVufe8WGmwtgiWEdW8NyLCbqJzNstYZ4e_yDWJ73mCg@mail.gmail.com> (raw)

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

             reply	other threads:[~2019-10-20 13:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-20 13:08 Sebastian Gniazdowski [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVDSVufe8WGmwtgiWEdW8NyLCbqJzNstYZ4e_yDWJ73mCg@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).