Double Subverted: It turns out all he wanted was the pleasure of their company; any sex will be consensual on their part.
Parodied: New recruits are shown a video educating them about the problem of sexual harassment on the battlefield.
Zig Zagged: Bob forbids his soldiers to rape the women of Town A, but only because it's a town in his own territory; he has no issue with his soldiers raping the women of Town B across the border. In fact, he sees it as a useful form of psychological warfare.
Averted: Bob doesn't care much one way or the other about the conduct of his soldiers.
Lampshaded: "What, so we can Pillage and Burn, kill women and children, and deliberately introduce dysentery to the enemy water supply, but at that you draw the line? Seems a bit arbitrary, boss..."
Invoked: Bob stages an Obligatory Warcrime Scene in a public place specifically so that he can arrive just in time to stop it and execute the perpetrator.
Exploited: Bob and his second-in-command Adam use their reputation for this to portray themselves and everyone under them as heroic liberators instead of malevolent conquerors to gain the trust and cooperation of anyone they conquer. After all, which do you think a village would rather have ruling them: Bob and Adam, who refuse to do something as utterly and intolerably heinous as forcing themselves on women and similarly execute any soldier who does so, or Charlie the Marauder whose troops have a policy of raping women andchildren wherever they go?
Defied: Bob is perfectly willing to resort to whatever dirty tactics the enemy uses, including war rape.
Conversed: "I think it's sort of lame how the protagonists are the only men in this show who aren't committing rape in every single episode. It doesn't make them seem noble, just kinda... low-expectations Marty Stus."
Implied: When Charlie the Marauder's troops come into town, nearly all the women hide or arm themselves. When Commander Bob's troops come into town, the women come out, greet them, and go about their normal business.
Deconstructed: Despite his admirable intentions, Bob is unable to stop his men from raping enemy women. In fact, he is unpopular with the troops for trying to ruin their 'fun.'
Although unable to stop it entirely, soldiers serving under Bob are among the most well-behaved in this conflict, and even foes regard him as a Worthy Opponent.
Even with disgruntled troops, Bob's effort to prevent rape is paid back by support of the local populace. This means Bob fights with the advantage of better local intel, volunteers, freely given supplies, moral high ground and more. Advantages that easily let Bob curbstomp Charlie the Marauder's army because nobody but Charlie's rapist troops actually like Charlie the Marauder.
Played for Laughs: The women hear Commander Bob's decree... and let out a disappointed groan. Their husbands have been off fighting for months, they're climbing up the walls in here...
Played For Drama: A soldier serving under Commander Bob rapes a woman, causing her immeasurable psychological distress. Bob, who happens to be her friend, is severely troubled by the fact he was unable to protect her, kills the soldier in a rage rather than consulting with his officers to determine if the man is guilty and deserves to be executed, and eventually becomes incapable of continuing to command his army, because he doubts himself and distrusts his men.