system
Given the following post, respond as if you're commenting on Reddit:
human
[The Lord of the Rings: Return of the King] - Was Gandalf the only commanding officer present at the battle of Minas Tirath?

Before King Theoden arrives with Reinforcements, it seems that Gandalf was the only person who was giving orders to the soldiers of Gondor during the siege. Why was this the case? It seems pretty inefficient for Gandalf to be riding his horse all over the city giving orders, and it didn't seem like the Gondorian soldiers had much morale to begin with. Where were all the other ranking officers within the army?
gpt
Denethor, the Steward, was in charge of the city. His sons Boromir and Faramir were the leading commanders of the city's defense. Boromir had already died and Faramir was sent to retake Osgiliath, which failed spectacularly. We can infer that the best soldiers went with Faramir, and were therefor killed or injured. These losses combined with Denethor's suicidal tendencies crippled the city defenses and the morale of the remaining soldiers, leaving Gandalf as the best choice left to command the remaining guard.