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

Need help with _regex_words/_regex_arguments-based completion



I have several utilites, that communicate with remote server.
Server name is passed via -R/--remote option, this option is
recognized by all these commands.  Next, some of arguments are
dynamic data (like directories, users et cetera) that can be
fetched from remote server by one of these utilites.

I want to make separate function that returns this "dynamic
data", but it needs to know correct "remote server".

How do I get -R option value, that can appear in command line as
"-R foo", "--remote foo" or "--remote=foo"?  I am not using
_arguments (can't use $opt_args).

-- 
Regards,
Sir Raorn.

Attachment: signature.asc
Description: Digital signature



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