added better handling for unknown options
This commit is contained in:
parent
14be1007c5
commit
2fd5f8e0f5
1 changed files with 4 additions and 1 deletions
5
main.c
5
main.c
|
|
@ -174,9 +174,12 @@ static void parse_args(int argc, char* const* argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(!"TODO");
|
{
|
||||||
|
printf("Unknown option '%c'!" "\n", opt);
|
||||||
|
exit(1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (unset_operators)
|
if (unset_operators)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue