fixing segfault during missing option errors in command-line parsing