Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"antecedents" [was Re: a couple of completion questions]
- X-seq: zsh-workers 11798
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: "antecedents" [was Re: a couple of completion questions]
- Date: Wed, 7 Jun 2000 11:06:50 -0400
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <200006070850.KAA13208@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>; from wischnow@xxxxxxxxxxxxxxxxxxxxxxx on Wed, Jun 07, 2000 at 10:50:45AM +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200006070850.KAA13208@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Sorry, I don't understand... what do you want to do?
Okay. I want to use _arguments -A in the state switch at the bottom.
Originally, install and record_avail were the same case, but when I
added -A, they wouldn't complete, so I had to insert the options
that had gotten the user to that state, which is why install and
record_avail are two separate cases now.
I want to avoid making remove, purge, status, and listfiles
four separate cases, yet still retain the -A to _arguments.
My last resort would probably be to define four new arrays with
the short and long options and then use something like
${(P)${:-_dpkg_actions_${state}}}, but I was hoping that there
was a better way.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author