Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Convention question regarding completions
- X-seq: zsh-workers 26412
- From: Doug Kearns <dougkearns@xxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Convention question regarding completions
- Date: Sun, 25 Jan 2009 01:37:37 +1100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=KKJQRbxCeEUYU+adh2ncJ3zPIZr9S0mP7g0r7TC2J1g=; b=XM2u3Ti+jc5DYTbarXOWR6VRcQWKZebpABXS2SRx2sUCCpAQwyFMnTUcDs2KJ0GXc0 yw64292/2x8d3qYNwiyJ2slA0Ea0q7lX3gzaAxLyUDYz+F4UumylOhrdiGw92JTTY5qw GxPkDycdKTHRs0mqTfgiC2MBlMo3kzXWZdNUQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vVcgTV79JUnOuVlXO9VKs1tMBU5kw8mF75fDm0OWUHoibjqq2ihpaHFVkiNE4Zlfy6 /Svjt8f7hbhWDHHpmNpLyEe1j0W5A3ompg86R8pFhrU4ENDQoW+Urc8oIcCcM22epc+c RkQx5bIyakWPSkpEorhZsqfBpSKRsRdNmh3Sg=
- In-reply-to: <2d460de70901100115x129a6405md5ca6ca8d1629c5c@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70901100115x129a6405md5ca6ca8d1629c5c@xxxxxxxxxxxxxx>
On 1/10/09, Richard Hartmann <richih.mailinglist@xxxxxxxxx> wrote:
> Hi all,
>
> when writing completions, should I XAND only the options
> which are really mutually exclusive like
>
> tar x
> tar c
>
> or should I XAND the ones which won't work but won't hurt,
> either like
>
> --verbose
> --quiet
>
> or should I XAND even the ones which become superfluous
> like the second option in
>
> deluser --remove-all-files
> deluser --remove-home
>
> ?
>
> Personally, I lean towards the third, i.e. most inclusive
> XAND rule, but I am interested what the others think.
Right, I don't think anyone is going to complain about your
implementation being too complete. :)
However, you'll see many of the completion functions tend to adopt the
first (and a half) approach E.g. "(- *)--version" without specifying
--version in any of the other option's exclusion lists because for
many commands --version simply overrides the other options rather than
producing an error.
Regards,
Doug
Messages sorted by:
Reverse Date,
Date,
Thread,
Author