From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3581 invoked by alias); 24 Nov 2013 15:45:18 -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: X-Seq: 18161 Received: (qmail 22081 invoked from network); 24 Nov 2013 15:45:02 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=IFo79TjzsxK8OpdfK/9sWNfOoJFbB74NKzMSDP28qt8=; b=HcmgopnRESnQBThHUUWU/KuLG3/S3rk4lR23m4W05B0x4a6cvw12QOWVx4DKO9dkyO EnHH4MnsqyqbRk8Qs1BIBK2I9e5UALy2/IMLHdvIVdWCU7z9kYPrb19h+93uYwAnQ2dF nGYMe8X3qeQ6RTNQRS7zrjIERsTpn5Ou8avKKCzyhbr3v7gjWhYP/5B+t95zSSsWEUnc vBLFv4hmIgCQeqiNQgI6qg7qcWmCi0bWRx3eCZvP8BLvy0kqTF85HcREbwzhXp0FDg+V y06FPuqnCMEFFADlplziL1YmEPVqww6tMxYudkJbWGPOt1/+PyiUwLNL3sXrk99z1ykm SNnQ== X-Received: by 10.68.197.73 with SMTP id is9mr13348723pbc.75.1385307898404; Sun, 24 Nov 2013 07:44:58 -0800 (PST) Message-ID: <52921EF8.8080909@gmail.com> Date: Sun, 24 Nov 2013 08:44:56 -0700 From: John User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: compsys: argument with pre-requisite argument Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I understand the exclusion option for an _arguments list, but I'm wondering if there is anything of the sort that would allow me to have pre-requisite arguments. I haven't found an example to work off, but what I want is something like: _arguments \ '-D+[debug]:debug level(0 1)' \ '--opt1[opt1 description]' \ '--special[special case]' \ '-a[special case a]' \ '-b[special case b]' such that -a and -b are only available if --special was already specified, but --opt1 and -D are always available for completing. TIA, John