🏗️」 wip: added the print message

This commit is contained in:
2025-08-11 20:26:21 +02:00
parent 9895a80833
commit 8f1abd7940
5 changed files with 58 additions and 14 deletions

View File

@ -1,20 +1,29 @@
#include <help.h>
#include <ping.h>
#include <opt_parse.h>
#include <ping.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <sysexits.h>
int opt_parse(char **av, args_t *args) {
int opt_parse(char **av, args_t *args) {
char *exec_name = *av;
(void)args;
while (*av != NULL) {
char *a = *av;
if (*a == '-') {
printf("omg an opt\n");
switch ((char)*(a + 1)) {
case '-':
break;
case '?':
print_help();
return -1;
case 'v':
printf("verboseeee");
break;
};
} else {
}
@ -28,6 +37,5 @@ int opt_parse(char **av, args_t *args) {
return EXIT_SUCCESS;
}
// 127.0.0.1 localhost : no error wtf EZ 42 parsing + ratio
// -v 127.0.0.1