That’s patently ridiculous. Heck, some of my highest earning years of late had me working with customers where I’d be more likely to see flip-flops than a collared shirt.
Edit: Or maybe I'm wrong, and there are other kinds of pants with many pockets.
These have ten pockets. https://shop.bluffworks.com/products/ascender-chino-regular-...
It becomes kinda cosplay when you have guy in desert camo cargo pants with huge belt with multitool on it, in desert combat boots and beige t-shirt ... in an office, coding Java.
But I'm the guy who goes there wearing M65, jeans and Doc Martens so who am I to talk.
Also you can get slim and stretch cargo pants, which removes the biggest complaint fashion people ususlly have with cargo pants (OMG HUGE BAGGY) and are more techwear/streetwear than military. Unless you get them in camo.