Handle invalid options through getopt(1) properly.