Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Leveraging the completion system to discover available options in a command
- X-seq: zsh-workers 31090
- From: Idan Kamara <idankk86@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Leveraging the completion system to discover available options in a command
- Date: Fri, 1 Mar 2013 15:23:14 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=YpqS5xvsHUioQuoxbH34t/YnNjqWDxIXFwK1ybPqvMA=; b=Z1zgQGGR/aE5R5/iVsG+SrMb01AW4qLHfwHvnzma4wAAVqmBmNpC50mfAKG96kRYFQ CK3w+IEBG5nPn8pCqt1kT/oy8+rkil+N0Z4Wo0E29tdpOmgkVpfh4xz1dMt4WZws0iXg cdoQXmQV2Wn7B9KVNrBXu5DW3OV5Z0rYPmcvkpEUMwnIxz+4ks0K0YFW8mjk5RdniBdH Fl4+DWLEmMZvtKqjkbssBxusMhmypHB4/swicL3w8gFDWw6s+BpwKXkI3/AS0+wvC+Im X52CDLy9SnwKbhUQNtxH1rHKh/RmVYB/woVjOJAbmDpMjWuI6spZYNrXwntYF58b6nXF eCIw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
Is it possible to use the completion system to get a list of available
options for a command zsh knows how to auto-complete?
Ideally, I'd like given the name of a program to get a list of pairs
(option string, desc) for each available option. I'd be nice to also
get options that are only available in a specific context, but given
how the completion system works, I'd guess that that might be
impossible.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author