「🏗️」 wip: polished a little the prints and fix short opt not working
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user