Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: complete rpm --{resign,addsign} in local



Bart Schaefer wrote:

> On Jun 5, 10:54am, Sven Wischnowsky wrote:
>
> ...
>  
> } What makes me cringe is the case where we have -xy and both options
> } have arguments...
> 
> You mean like `tar fvcbz foo.tar.gz 1024 foo'?
> 
> I don't think it's incumbent upon _arguments to handle this without help;
> that's exactly what the state machine is for.  It just has to be possible
> to tell _arguments that other option letters are allowed in the string of
> options even after one that has a following argument, so that it can go
> to the right next state.
> 
> This could be done by something like `_arguments -s+ ...' if it's too
> awful to come up with still more OPTSPEC syntax (which I'm beginning to
> believe that it is).

After thinking some more about this... I think we have to make
comparguments understand this because it has to be able to skip over
the arguments when completer after them. Right?

Maybe I'll have a look at this at the weekend.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author