The court authorized to grant the writ to whom a petition therefor is presented, if it appears that the writ ought to issue, must grant the same without delay, and the writ shall not be denied for any informality in the petition or for any want of matters of substance, if the same can be supplied, and the court to whom application is made, must point out the matters wanting and direct the manner of supplying the same.
N.D.C.C. § 32-22-05