In an action against a person for usurping an office, upon proof by affidavit that the defendant has received fees or emoluments belonging to the office and by means of his usurpation thereof, an order may be granted by a judge of the court for the arrest of such defendant, and holding him to bail; and thereupon he shall be arrested and held to bail, in the manner and with the same effect, and subject to the same rights and liabilities as in other civil actions where the defendant is subject to arrest.
SDCL 21-28-7