aboutsummaryrefslogtreecommitdiff
path: root/source/kpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/kpl.c')
-rw-r--r--source/kpl.c11
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