From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26056 invoked by alias); 27 Jul 2018 17:05:59 -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: 23542 Received: (qmail 18621 invoked by uid 1010); 27 Jul 2018 17:05:59 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.52):SA:0(-1.7/5.0):. Processed in 3.078428 secs); 27 Jul 2018 17:05:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS, T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: mal.graty@idioplatform.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=idio-ai.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HqFkte57/UD6j21VjOi6CfkDUVM6AtxrAVePd/8rSEI=; b=dA3NUJHeQlTmeAv8VjizC0C0SS7jFjW9ud/Cya19nv+WX8BNq3LbS10CWnqJ/uV+2V NnDxKlDwEvCMmnJSRQ9bUh9dtSGah3MqWthAr2bhDLBV7cvWdHNjigChBpax3zccLxps UQipxfWaP1cqw7bk6k6+2iyFcC1lTG4P/uyDKKv8uW0PuDQ6OeK+RM8SlbG471wo9hFC HdJt5Z71kH8F8fsJzDbrcUUJzkE5SGwGHolBy14FCfPI7xUhfLqcZmrFCm/u9Zx9mcOf GyrPqosh0R3iEF3EcxzbjVERXd3IIlw6YziPhNcrKXq5zoGvbE1NdKLgnTNtHuWBsZ/V oqcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HqFkte57/UD6j21VjOi6CfkDUVM6AtxrAVePd/8rSEI=; b=o2bMhCvAvSrVDP/O4SqT1Hkw+s3AzjwG8aXkm+DqXJth6kNyLK2dlHpl5bSq/ktcwy MWoUi35eNP085k7F3Api3HIm+NGjxlZNjts05r54f0GxH7i90VLKHlaF1uRs/rxPntLp DIpVBHEOLi4OYjIJs0SwrJY3EgEbrAt3uhMqYZYJWPec5fSAAhB83Yc23Bdhe0pJW0dS 4HMs3/Uz1obGmX4gAwLIHC+fvtPc2h9co83rawKVZUGILgF0IabrTTOZCuxA8UHl4/UW JN812rv7XMvd5yrau4tfA6oOvgWi84CbwcxuO+HOlxrDJ8zHtLAzMQXo6S3cAkneC0fy F/VQ== X-Gm-Message-State: AOUpUlHFqoaZhs0pMPZC/Dog9BLqBeN/gaatZtAfW4gcEyuE5ZFuPS9B X8JKgR8sscgRglItcFkmaDXtPi5lchofYzeMPBHBOfu8 X-Google-Smtp-Source: AAOMgperKqU4o1UPXAN+0xew90JZGai7Ue6WvRilcxQVUBSWR0va81QEB+qHsUbHZ3trjdbFpQS1eSwUt8j14TYD+z0= X-Received: by 2002:a1f:1e42:: with SMTP id e63-v6mr4206952vke.52.1532711153875; Fri, 27 Jul 2018 10:05:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4B46A103-4424-48D6-8585-1EC273B20584@dana.is> References: <4B46A103-4424-48D6-8585-1EC273B20584@dana.is> From: Mal Graty Date: Fri, 27 Jul 2018 18:05:53 +0100 Message-ID: Subject: Re: Completion confusion around the _arguments -A flag To: dana Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000ded20a0571fe1f33" --000000000000ded20a0571fe1f33 Content-Type: text/plain; charset="UTF-8" Thanks Dana For reference, in case it rings a bell for anyone, I'm seeing this on a vanilla Ubuntu 18.04 install. I'll have a poke around for anything that might be altering default behaviour though, thanks for confirming I'm not mad :) On 25 July 2018 at 17:36, dana wrote: > On 22 Jul 2018, at 10:16, Mal Graty wrote: > >I have a binary (call it foo) with two, mutually exclusive, optional flags > >(that must come first) and a required arg. The problem I'm having is that > >when omitting both flags and using just the arg the completion tries to > add > >one of the flags after it. Reading the docs lead me to the -A flag, > however > >it doesn't seem to be preventing the flag completion despite being after > >the first arg. I'm hoping I've just overlooked something but for the life > >of me I can't see it. > > For whatever it's worth, i don't see anything obviously wrong with your > function, and it works fine when i test it on 5.5. Maybe you have an option > enabled that changes the behaviour, idk > > dana > > --000000000000ded20a0571fe1f33--