> but being told what to wear does go both ways.
In my view the issue isn't that a dress code was specified, it's that "short skirts and high heels" were specified for the women. In other words, they're being told to sex it up. If they'd just said "dress is business casual" or somesuch and left it at that, there would have been exactly zero problem.
But, really, the deeper problem isn't that short skirts & heels were specified, it's that nobody saw that this was a bad thing to do.