Section 141(4) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(4)Where a vacancy arises in command of a ship, the Flag or Senior Officer may appoint a suitable officer to the command of such ship, reporting the circumstances to the Chief of the Naval Staff.