summaryrefslogtreecommitdiffstats
path: root/lisplib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-02-03 23:16:23 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-02-03 23:16:23 -0800
commitf4c54fbad69d1181057fe5025f537802b9eec610 (patch)
tree0f932e4c51fd2436f931ba6de04d2526c27635ef /lisplib.c
parent55dca8cda3825e0f338584ff853a8fc78b98b328 (diff)
downloadtxr-f4c54fbad69d1181057fe5025f537802b9eec610.tar.gz
txr-f4c54fbad69d1181057fe5025f537802b9eec610.tar.bz2
txr-f4c54fbad69d1181057fe5025f537802b9eec610.zip
getopts: break up help into three functions.
* lisplib.c (getopts_set_entries): Autoload for opthelp-conventions and opthelp-types. * stdlib/getopts.tl (opthelp): Remove incnotes parameter. Entirely trim out the code for notes about conventions and use of types. (opthel-conventions, opthelp-types): New functions. (option-base opthelp-conventions, option-base opthelp-types): New methods. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'lisplib.c')
-rw-r--r--lisplib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisplib.c b/lisplib.c
index f841f4c7..0f48b82e 100644
--- a/lisplib.c
+++ b/lisplib.c
@@ -483,7 +483,8 @@ static val getopts_set_entries(val dlt, val fun)
{
val name[] = {
lit("opt-desc"), lit("opts"),
- lit("opt"), lit("getopts"), lit("opthelp"), lit("define-option-struct"),
+ lit("opt"), lit("getopts"), lit("opthelp"), lit("opthelp-conventions"),
+ lit("opthelp-types"), lit("define-option-struct"),
nil
};
val name_noload[] = {