In every case in which an offender is punishable with imprisonment which may be of either description it shall be competent to the Court which sentences such offender to direct in the sentence that such imprisonment shall be wholly rigorous or wholly simple or that any part shall be rigorous and the rest simple.