This will provide a list of each term in the command used to start execution:
Tested on Python 3.10
import sys
print("Command:", " ".join(sys.orig_argv))
E.g. python -m foo.bar -hello world
Would produce:
Command: python -m foo.bar -hello world