From: Doug Kearns <dougkearns@gmail.com>
To: "Zsh Hackers' List" <zsh-workers@sunsite.dk>
Subject: Re: Convention question regarding completions
Date: Sun, 25 Jan 2009 01:37:37 +1100 [thread overview]
Message-ID: <644fc65e0901240637n6ef09195p124771ecb1357526@mail.gmail.com> (raw)
In-Reply-To: <2d460de70901100115x129a6405md5ca6ca8d1629c5c@mail.gmail.com>
On 1/10/09, Richard Hartmann <richih.mailinglist@gmail.com> 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
prev parent reply other threads:[~2009-01-24 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-10 9:15 Richard Hartmann
2009-01-21 17:11 ` Richard Hartmann
2009-01-24 14:37 ` Doug Kearns [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=644fc65e0901240637n6ef09195p124771ecb1357526@mail.gmail.com \
--to=dougkearns@gmail.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).