From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-workers@sunsite.dk
Subject: Re: _values again and new _ifconfig
Date: Tue, 8 Jan 2002 16:23:28 +0100 [thread overview]
Message-ID: <15419.3824.336821.617178@wischnow.berkom.de> (raw)
In-Reply-To: <3C20ABAA.9C04D4D3@yahoo.co.uk>
Oliver Kiddle wrote:
> ...
>
> _ifconfig shows up another limitation of _values. If values are
> separated from their arguments by a space (unquoted), it'll go on
> completing more values instead of the previous value's arguments.
>
> What I think is that -S ' ', should mean that the separator is a quoted
> space and that with -w, the default for -S should not be '=' but also
> separate words. [...]
Good idea. No patch for this, though, because it would require quite
a bit of coding -- so much that I'm actually reluctant to try it at
all. Think about the need to be able to find out which word is a name
and which is a value, think about optional values -- that would almost
require a re-implementation of the C-core of _arguments. Urgh.
It may actually be easier to leave _values for handling only things
expressable in a single word and changing _arguments to handle
`options' without leading `-'s or `+'s.
Or rewrite both of them, based on a bit of common code. Some parsing
front ends (one for multiple words, one for a single word) producing
the same internal format which is then used by a common back end. Hm.
> I also noticed a few cases where the description had been forgotten
> from an _values call. I also think it might be better to ditch that
> argument to _values and require _description to be used.
I made that because that description isn't always needed (not when one
of the actions is used) and I wanted to avoid superfluous calls to
_description.
Bye
Sven
--
Sven Wischnowsky wischnow@berkom.de
prev parent reply other threads:[~2002-01-08 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-19 15:00 Oliver Kiddle
2002-01-08 15:23 ` Sven Wischnowsky [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=15419.3824.336821.617178@wischnow.berkom.de \
--to=wischnow@berkom.de \
--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).