|
From: | Aaron Bentley |
Subject: | Re: [Gnu-arch-users] Fai update: now with shell mode |
Date: | Wed, 28 Jul 2004 20:24:28 -0400 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
Jan Hudec wrote:
Yes, zsh completion for tla does exactly that. If the archive name is already typed, there is no need to repeat it in the list of choices. And fai shell does that, too. (In fact, if I try 'nget address@hidden<Tab><Tab> in fai shell, I get '1 1-CHECK 1-MIRROR' only).
In Fai, that's not a feature, it's a bug. Completion in cmd.Cmd is screwy when it comes to hyphens, so I have to add prefixes, find completions, then chop 'em off. But I can see how that's be a nice thing to do on purpose.
It's actualy a regular expression on tokens. So I would say: package-versions ('--library'|'--full'|'--revisions')* <archive> This is less human-readable, but more computer-readable.Considering the intended use, more human-readable is how I'd lean.But you need to state whether order matters and where it does not.
Well, the only place I can see order mattering is with positional parameters. For options, the completion type is always "strings from this list", and for option arguments, it's unambiguous.
Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |