Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help with completion of option arguments
- X-seq: zsh-users 9078
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Help with completion of option arguments
- Date: Sat, 09 Jul 2005 17:21:38 +0000
- In-reply-to: <e3b7bac05070901427d4af7e4@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <e3b7bac0507080006434477d5@xxxxxxxxxxxxxx> <1050709070248.ZM17162@xxxxxxxxxxxxxxxxxxxxxxx> <e3b7bac05070901427d4af7e4@xxxxxxxxxxxxxx>
On Jul 9, 1:42am, Travis Spencer wrote:
} Subject: Re: Help with completion of option arguments
}
} > ... is, insert an empty string element into the double-parens like this:
} >
} > _arguments : \
} > "-A-[this is a test]:test:(('' a\:'test sub-message'))" \
} > "-B-[notify (e-mail) admins]:notify:((''
} > b\:'suppress interactive query (for use in crontab)'))"
}
} Wow. Tricky. I would never have figured that out on my own.
You might have. '-A' by itself is '-A' with an empty argument, right?
Try it this way to see better:
_arguments : \
"-A-[this is a test]:test:(('\:by itself, -A is a simple test'
a\:'with this argument, -A tests a sub-message'))"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author