diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-10-24 20:06:26 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-10-24 20:06:26 -0400 |
| commit | 19eb183b38511998322d99c33515c079d89785e3 (patch) | |
| tree | 3d0446b1d2fe6a99ea2e9a6c1300516bfba1f590 /source/config.c | |
| parent | 689719e0a1f139e28e57a4df334d5fde354b3379 (diff) | |
add kpl_identifier
Diffstat (limited to 'source/config.c')
| -rw-r--r-- | source/config.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; |
