diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-10-20 14:11:31 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-10-20 14:11:31 -0400 |
| commit | 689719e0a1f139e28e57a4df334d5fde354b3379 (patch) | |
| tree | 2b5e0d0c4aced4886ff3c67729adceba45cac3b0 /source/kpl.c | |
| parent | baa6f9cdea938c06435635f906b128f7940a59ec (diff) | |
config parse cli arguments
Diffstat (limited to 'source/kpl.c')
| -rw-r--r-- | source/kpl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/kpl.c b/source/kpl.c index 55ca994..d970eb3 100644 --- a/source/kpl.c +++ b/source/kpl.c @@ -5,7 +5,12 @@ #include "kpl.h" #ifdef KPL_MAIN -int32_t main(void) { - return 0; +int32_t main(int32_t argc, char *argv[]) { + int32_t exit_code = KPL_EXIT_CODE_SUCCESS; + kpl_env env = {}; + if ((exit_code = kpl_env_config(&env, argc, argv)) != KPL_EXIT_CODE_SUCCESS) + return exit_code; + // TODO + return exit_code; } #endif |
