(a) General rule.--Any person subject to this part charged with an offense under this part may be ordered into arrest or confinement. When any person subject to this part is placed in arrest or confinement prior to trial, immediate steps shall be taken to inform the person of the specific wrong of which the person is accused, and diligent steps shall be taken to try the person or to dismiss the charges and release the person.
(b) Admission to bail.--The accused, if apprehended or ordered into confinement prior to or during trial by a military court, may be admitted to bail by the officer exercising special court-martial jurisdiction over the accused, by a superior commanding officer or by the Adjutant General.