Actually this test isn't needed at all, getopt should handle it.