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`ve never understood the point behind school uniforms for students - a uniform for teachers I could understand, though... the military isn't trying to enforce an army uniform on the people it's supposed to serve either.