From 7277cc1bedaa335b96ce609b4390618358198c32 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 8 Nov 2015 12:42:00 -0800 Subject: 37079: better description of "optstr" field in struct builtin as used in BUILTIN() macro --- ChangeLog | 5 +++++ Etc/zsh-development-guide | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1334e29d8..cee715d33 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-11-08 Barton E. Schaefer + + * 37079: Etc/zsh-development-guide: better description of "optstr" + field in struct builtin as used in BUILTIN() macro + 2015-11-07 Peter Stephenson * 37074: Src/subst.c, Test/D04parameter.ztst: extend previous diff --git a/Etc/zsh-development-guide b/Etc/zsh-development-guide index 9ca441bd8..c4aa1b243 100644 --- a/Etc/zsh-development-guide +++ b/Etc/zsh-development-guide @@ -503,7 +503,9 @@ arguments are: - the options the builtin accepts, given as a string containing the option characters (the above example makes the builtin accept the options `f', `l', `a', `g', and `s'). Passing NULL here disables - all flag handling, i.e. even "--". + all flag handling, i.e. even "--". Each option letter may be + followed by one of ":" (argument must follow), "::" (optional + argument may follow), or ":%" (optional numeric argument). - and finally a optional string containing option characters that will always be reported as set when calling the C-function (this, too, can be used when using one C-function to implement multiple -- cgit 1.4.1