diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-20 13:22:50 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-20 13:22:50 -0400 |
| commit | 4e19e6ab1bd24466d9dcb0d8eea54a7e3d84d576 (patch) | |
| tree | c0c581d72a122c146d6308a16e0a7269d38ed984 /source/kpl.c | |
| parent | 87dfa262eb6d6b816351c03a01cc837a32b91ab4 (diff) | |
kpl config set module extension
Diffstat (limited to 'source/kpl.c')
| -rw-r--r-- | source/kpl.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/kpl.c b/source/kpl.c index 05d9250..aacbd5c 100644 --- a/source/kpl.c +++ b/source/kpl.c @@ -2,8 +2,13 @@ #include "kpl.h" #ifdef KPL_MAIN -int32_t main(void) { - KPL_TODO("MAIN PROGRAM"); - return 1; +int32_t main(const int32_t argc, const char *argv[]) { + int32_t exit_status = KPL_EXIT_CODE_SUCCESS; + kpl_config config; + kpl_config_init(&config); + if ((exit_status = kpl_config_parse_args(&config, argc, argv))) + return exit_status; + KPL_PRINT_TODO("MAIN PROGRAM"); + return exit_status; } #endif |
