I want to use upstream proxy mode, but the parameter must specify --mode, as follows
--mode
mitmweb --mode upstream:https://x.x.x.x:8888/ -s test.py