From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16837 invoked by alias); 25 Jul 2018 16:36:16 -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: 23534 Received: (qmail 3306 invoked by uid 1010); 25 Jul 2018 16:36:16 -0000 X-Qmail-Scanner-Diagnostics: from mail-it0-f41.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.214.41):SA:0(-1.9/5.0):. Processed in 1.376194 secs); 25 Jul 2018 16:36:16 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS,T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0Ct8AJJDycVdCn8N1Esx5w2lnL4gbY60dbk6jG9i4j4=; b=maBzrtVoB+3ExFwhDoFfP0LFoXKVZdwRDEoL8WYdl4v0yGaW+TORYhA9TmaOUq7Uy8 vyUJiqJNVDjN7sav0ZPx0YAt7W1navFv3HawfruRtL9vfa+aiKl23MBlu0uf1NSis0i5 MYzng9nROfKxjVU4LGp2ApZi2324QIX+/Rn6PJWL/t4b2I6ISqU616+xjlSP20lwCqz8 NaV5C6D3JCxMkCJgKZjHLD4BX8cnVLzfbut2VWcHv+0PTrGNrq42ec+bKhLBcVsAyAQS pMuRmZsb62N1aU+1I09vJUdoLqZAIlKS/8DBQ4Y/rrHxj5c0ZjEjPaVxdC2YJVs+iHrK Vlkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0Ct8AJJDycVdCn8N1Esx5w2lnL4gbY60dbk6jG9i4j4=; b=ZPAQvwiovV/3Ej/tbOPier1GUY8a00FAkdRuXjN/0G8FmJIgk1EOCJ9Oghv7/ixFAZ zjeyjUSbAVIaA+2y11ME8QKtSDhuoY8qSsOfv+9TTvAfQVLWRjn0JBnFKxCKU0kNMQ+R 5doNmHgCUngC9cc4qOkPi0FkRsAJVqi4cFV/RQeNtZ36F4r7DCcRY+arWbRteth6FREL OxC1bnaafVTsTQ7s0G++Wtq0RTEKrEp6bhTvcVN7Ma2zk9baxIju0Q90JfrywfHtBd9J Ze5WY+m5UqB0QWPGciQ2Mr+6NmNWWtElvRNL0zAh90l5Nay9cRrE71aYd/X7RShbHqK4 1RxA== X-Gm-Message-State: AOUpUlFU8RQQUHCl3/bYhuKMmdrjtPKlRLp8yYgJGslbpJ+O9MdWulgO rZMwvnxHE82TbozO+LwzeDd2jQ== X-Google-Smtp-Source: AAOMgpc5xxr2Mkp43dmeV/48/EvHytLvcOE/tUtjVeidr2ftWoIPjHAU38GkIQAiQV1DtMwNvdqihA== X-Received: by 2002:a02:8952:: with SMTP id u18-v6mr20516964jaj.13.1532536572265; Wed, 25 Jul 2018 09:36:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Completion confusion around the _arguments -A flag From: dana In-Reply-To: Date: Wed, 25 Jul 2018 11:36:10 -0500 Cc: zsh-users@zsh.org Content-Transfer-Encoding: 7bit Message-Id: <4B46A103-4424-48D6-8585-1EC273B20584@dana.is> References: To: Mal Graty X-Mailer: Apple Mail (2.3445.6.18) 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