added better handling for unknown options

This commit is contained in:
Alex Thannhauser 2025-07-17 11:24:02 -05:00
parent 14be1007c5
commit 2fd5f8e0f5

5
main.c
View file

@ -174,9 +174,12 @@ static void parse_args(int argc, char* const* argv)
}
default:
assert(!"TODO");
{
printf("Unknown option '%c'!" "\n", opt);
exit(1);
break;
}
}
if (unset_operators)
{