Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zparseopts and longopts
- X-seq: zsh-users 21559
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: zparseopts and longopts
- Date: Fri, 13 May 2016 04:25:28 -0700
- Cc: Atte Peltomaki <atte.peltomaki@xxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=JUBqQJX6kRrTKZyAaUyal8ogi6bi982JTY4tb5iJ2mk=; b=LRU/B4Wo5zVquOkaD868Hw5Le3Qo9K6wfe2fcQ22qtoFAf9BqX4vUWeKdYP2H8a8cw uqytHKDMVOxs+MBFwMSTcAtA4tKLHHTEHnX1ErSH0pDrIIBkX2ljixGYJBg/yR1/Nmku 2hQzBf8YR4k4iy3CQwzi/bv3u3p2fDGfQ+yA9MSi45Dhsw0naeMubSJDaK2xsId2oEgd zkgo/8nSAre3O75mOQivx4kipympR2EeQtxCMEk/Al9cADpjOB8IklSPH8bhMJvgEf1t FbWHd4hK+9iq0jcO6VVjhcnJD+kPcaSB9d4MmVKgQJ4WZcDo3wIrhZok36AzfTuxnJ+1 4+HA==
- In-reply-to: <20160512111628.GG12777@ass.pp.htv.fi>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20160512111628.GG12777@ass.pp.htv.fi>
On Thu, May 12, 2016 at 4:16 AM, Atte Peltomaki <atte.peltomaki@xxxxxx> wrote:
> Executing with imaginary new option:
>
> % ./test.zsh --gnu argh --gnu-tard rms --gnu-tard-added-even-longer-opt whyohwhy
> --gnu argh
> --gnu-tard -added-even-longer-opt
Well, you've told zparseopts that --gnu-tard is an option that takes a
mandatory argument, and you have not told zparseopts that
--gnu-tard-add... is an option, and the argument of an option is
allowed to appear in the same word as the option itself (so that -a2
is the same as -a 2), so zparseopts believes -add... is the argument
of the option you told it about.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author