Whenever any official is authorized to commence an action for the violation of any law relating to revenue or to compel the specific performance of such a law, he may designate the county in which the action shall be commenced and prosecuted, unless otherwise provided by law.