bpo-46608: Fix argument parsing in freeze_modules.py by kumaraditya303 · Pull Request #31131 · python/cpython
I find this a rather clumsy solution. I would just rename the flag so the default can be false.
(Also, I prefer having the argument parser being a global and main() being called without args and doing the arg parsing, like we do in deepfreeze.py.)