Unnecessary, simply add an `assert(0)` after the call to `getopt` above. If something throws the assert will not be reached.

Alternatively, use `assertThrown(getopt(args, "foo", &foo));`.