diff options
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; |
