Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion: make certain options' arguments complete according to arguments given to previous options
- X-seq: zsh-workers 42821
- From: Doron Behar <doron.behar@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Completion: make certain options' arguments complete according to arguments given to previous options
- Date: Fri, 25 May 2018 23:30:53 +0300
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=JaESujrc9rT/m6y1Ah5P4MwXARI/F+8KPxcGEfWggTw=; b=rYeZO++l5YpcckDORN/vBPIkQapEqT/cwNeTRUKkP7ZNKjgFn2leZ7KdAm4rGcll6a 57jPgTZTSwv9C0WMhsKd6Bmzs4yloulVBy9ONvTO6d3/sPM3mqZkgvAuTV87RlqUbgAB a1lZTeO8iQOK9JIwLq2WFfle4W2/DeMFD3yOD2Dvhp83Y9EYPdQcovZgb9KxIfIT5tDI QLXu4LfvkMtOuCXdqLksMRpmcMwUFLBmCgj+SZsVdHQk3S7kiTgQUWTpQeQldchTVARm WDdYellwzthbhk1VipWz5XMMnJEmaewjLHlnBRw/fpJjkI6Di1HAIxSVPyeqZup0c1S4 92kg==
- In-reply-to: <CAH+w=7bXm7HbWOv0Ut74XHLbwBj=EoPq2CpEo1M_K5tvDDbV6A@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180523193027.yfbx5v77roaoy42n@NUC.doronbehar.com> <F109C9FF-0179-4137-9DC2-045E98052BFE@kba.biglobe.ne.jp> <20180525194644.qfgo63wslkrwexo5@NUC.doronbehar.com> <CAH+w=7bXm7HbWOv0Ut74XHLbwBj=EoPq2CpEo1M_K5tvDDbV6A@mail.gmail.com>
Excellent, that worked. Thanks again!
On Fri, May 25, 2018 at 01:03:18PM -0700, Bart Schaefer wrote:
> On Fri, May 25, 2018 at 12:46 PM, Doron Behar <doron.behar@xxxxxxxxx> wrote:
> >
> > Is there a way to know if a certain argument was given? I'm talking
> > about the case where this argument doesn't accept an argument.
>
> It'll still be in the $opt_args array, just with an empty value. So
> e.g. ${+opt_args[--option]} will be 1.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author