🏗️」 wip: polished a little the prints and fix short opt not working

This commit is contained in:
2025-08-12 13:44:43 +02:00
parent 577563da37
commit bc57fe2cc2
4 changed files with 26 additions and 18 deletions

View File

@ -39,12 +39,13 @@ int opt_parse(char **av, args_t *args) {
OPT_WHILE {
if (opt == options[i].opt) {
OPT_HANDLE(i)
} else {
print_parse_err(INVALID_OPT, a);
return EXIT_FAILURE;
}
i++;
}
if (i == OPT_NB) {
print_parse_err(INVALID_OPT, a);
return EXIT_FAILURE;
}
}
} else {
if (args->hosts == NULL) {