When a warrant of arrest is issued pursuant to sections 588.01 to 588.15, the court or officer shall direct whether the person charged may be admitted to bail for appearance, or detained in custody without bail, and, if admitted to bail, the amount thereof. Such direction shall be specified in the warrant.