From 19eb183b38511998322d99c33515c079d89785e3 Mon Sep 17 00:00:00 2001 From: nodist Date: Sat, 24 Oct 2026 20:06:26 -0400 Subject: add kpl_identifier --- source/config.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source/config.c') diff --git a/source/config.c b/source/config.c index f1aabf8..6e213cb 100644 --- a/source/config.c +++ b/source/config.c @@ -3,9 +3,14 @@ typedef kpl_exit_code kpl_config_option_parse_fn(kpl_env *env, int32_t arg_index, char *argv[]); +/* + * Per configuration option actions + * Used to print help messages and parse arg strings and set env values + */ typedef struct { - int32_t flags; - char match, *help_option_argument, *help_message; + int32_t flags; // flags to set on env->flags + char match; // must be set, used in printing help message + char *help_option_argument, *help_message; // help_option_argument, string type if the option takes an arg kpl_config_option_parse_fn *parse_fn; } kpl_config_option; -- cgit v1.2.3