When the proceeding is brought to remove the county attorney, the court may appoint an attorney to appear in behalf of the state and prosecute such proceedings.