Factored out --cores and --io-threads parsing/erroring logic.