Both deserve a punch in the face.
Having a dress code is offensive to you? Weren't you in the military?
I still am. But if it's on my private property, do not tell me what to wear and what to do.
I accept the dress code for the military but if you want to wear whatever you want off duty, that's fine by me.
What about in public schools? For example, my daughter attends public elementary school and they are required to wear uniforms. Do you oppose that?
I wholeheartedly oppose that. When I was in grade school, I remember circulating of petition to get rid of the dress code policy, citing
Tinker v. Des Moines. The petition got nearly 200 signatures before the school confiscated it. Believe it or not, that was a major event that molded my libertarian ideology.