allow maximum_errors to be specified as a command line arg