a captain is for command of a ship at sea