Section 36. A dishonorable discharge shall be given only to carry out the sentence of a court-martial.