This commit is contained in:
Joe Bloggs 2014-03-26 02:21:58 +00:00
parent e865f3e220
commit 48553f56d1
1 changed files with 1 additions and 0 deletions

View File

@ -182,6 +182,7 @@ With the _arguments function you can create much more sophisticated completion f
Like the _alternative function, _arguments takes a list of specification strings as arguments. Like the _alternative function, _arguments takes a list of specification strings as arguments.
These specification strings can be for specifying options and any corresponding option arguments (e.g. -f filename), These specification strings can be for specifying options and any corresponding option arguments (e.g. -f filename),
or command arguments. or command arguments.
Basic option specifications take the form '-OPT[DESCRIPTION]', e.g. like this: Basic option specifications take the form '-OPT[DESCRIPTION]', e.g. like this:
#+BEGIN_SRC sh #+BEGIN_SRC sh
_arguments '-s[sort output]' '--l[long output]' '-l[long output]' _arguments '-s[sort output]' '--l[long output]' '-l[long output]'