law: 45. Unbecoming conduct.-
  Any officer, junior commissioned officer or warrant officer who behaves in a manner unbecoming his position and the character expected of him shall, on conviction by court-martial, if he is an officer, be liable to be cashiered or to suffer such less punishment as is in this Act mentioned; and, if he is a junior commissioned officer or a warrant officer, be liable to be dismissed or to suffer such less punishment as is in this Act mentioned.