Suppress error messages while testing —target option name