What are your thoughts?

I work at a private owned restaurant where we have a dress code but they have always allowed us to wear ripped jeans. I understand a dress code, and I don’t mind changes. We now have a new manager and he told us today that we cannot wearing ripped jeans, also mentioned that “women don’t want to see their husbands watching us in ripped jeans and yoga pants…” What are your thoughts on this?