🏗️」 wip: parsing kinda working

This commit is contained in:
2025-08-11 21:52:57 +02:00
parent 8f1abd7940
commit e635977c88
6 changed files with 105 additions and 41 deletions

View File

@ -6,6 +6,17 @@
#include <stdio.h>
#include <stdlib.h>
void init_args_t(args_t *args) {
OPT_WHILE {
args->opts[i] = false;
args->arg[i] = NULL;
}
}
void handle_options(args_t *args) {
// TODO: need to make this function D:
}
int main(int ac, char **av) {
args_t args;
if (ac > 1) {
@ -15,7 +26,7 @@ int main(int ac, char **av) {
else if (ret != EXIT_SUCCESS)
return ret;
else
return EXIT_SUCCESS;
handle_options(&args);
} else {
print_no_host(*av);
return EX_USAGE;