J.T.B. wrote:

Military realism or not, TOS Starfleet apparently does have rules whereby rank alone does not qualify an officer to take command, and McCoy is not qualified. It was stated in "A Taste of Armageddon," when McCoy tells Scotty what he might do if he was "an officer of the line."
|
That can be corrected with only one line of dialogue.