Yeah but you see, this requires to be deployed along side the application somehow with the help of the ops team. While changing the command line is under control of the application developer.

So security theatre is the best option? I'm not saying this to be cheeky, but it just seems to be an overly shallow option that is trivially easy to end run.

Agreed.

How can we offer a solution that is as low or lower friction and does the right thing instead of security theater.

At least we could consider this part of a defense in depth.

We; humans; always reach for instant gratification. The path of low resistance is the one that wins.