Happened during the Falklands War.
There are peacetime rules and war time rules, war time rules are best summarised as “government does what it wants and justifies it after the fact”.
https://en.wikipedia.org/wiki/Falklands_War_order_of_battle:... under “Ships taken from trade”.