Catch errors when parsing the command line