aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorforever2k38 <forever2k38@noreply.codeberg.org>2026-08-30 18:05:26 +0200
committerforever2k38 <forever2k38@noreply.codeberg.org>2026-08-30 18:05:26 +0200
commit02fd79105a7fe5ac6a04e76db27b163e4064f759 (patch)
treeb4cdc0ad498078555259bf71c0fe8b445f23217d /src/main.c
parent5e2367bfbe6a06c493d4b8e50917fb599a9ee5af (diff)
work on config and args
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 9cc3ae6..4de964d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,15 @@
-#include <stdio.h>
+#include "args.h"
-int main() {
- printf("hello world!");
+int main(int argc, char *argv[]) {
+ pow_args args = {0};
+
+ pow_args_parse(argc, argv, &args);
+
+ if (args.flags & POW_FLAG_HELP) {
+ pow_args_print_help();
+
+ return 0;
+ }
return 0;
}