From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 07af4239 for ; Sun, 20 Oct 2019 13:09:24 +0000 (UTC) Received: (qmail 5586 invoked by alias); 20 Oct 2019 13:09:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24368 Received: (qmail 20790 invoked by uid 1010); 20 Oct 2019 13:09:12 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25601. spamassassin: 3.4.2. Clear:RC:0(209.85.222.41):SA:0(-2.0/5.0):. Processed in 4.181575 secs); 20 Oct 2019 13:09:12 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.41 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=6xfzWgfhHDg0gsKGv3qXr2PE6jM1Fex3YTb/ioO53NU=; b=DndoJR6h6ghE0jZVeeehIjsZi1IF/sT/qA/IJnap8WRdArEZkDf4FoaySyUfkvFAE2 otq+Xjli0Tbb+SaSRqw8cLYJOYn24UZVKIf3Q9AfGv9f4El7GniUcFlJRAc7VRwGsq1/ HyZZ4YdollQQ7IJ2X7JeuA5NfJePdfbf9+dQTRRidbFtJ9KlE81e3NgxTpka3JWgPe4c tVzokDs34m7/F4b/EY2yaU9/0mHdza904Re/P8PKq0Pju6rSu1VcQYdM91YQI169g4jQ p7SiQyUAqczBIEZkrQoZKIVOgeppt8DvKZrdCfPkrIher0OIPowBor2MEY839j9LhFN5 uvCw== X-Gm-Message-State: APjAAAXUD3otWHrFZX+is2m1hGBmwoTRFrTFd9499ig5M34e1mm1eJOP 0oBTovhhr2zc67GpfDaklV/bUVt914CtqISCa3nZkbpZ X-Google-Smtp-Source: APXvYqxaz1t/5dMv+X6YzHHQ12eRpgYFZlzLu/wuk2Fbr10LTD6xuIIUe1hET/XefhjWmxLvz38vmrAZSsXf1bScBCk= X-Received: by 2002:ab0:2044:: with SMTP id g4mr9870816ual.136.1571576913710; Sun, 20 Oct 2019 06:08:33 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Sun, 20 Oct 2019 15:08:25 +0200 Message-ID: Subject: When _alternative separates the options? To: Zsh Users Content-Type: text/plain; charset="UTF-8" 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