We've been doing this kind of checking in options_parsing when reading in the --tests option - any reason not to do this there?