argparse在可执行模块中使用时,将显示帮助消息__main__.py而不是模块名称。如何纠正这个问题?
$python -m mymodule -h
usage: __main__.py [-h]`
My executable python module
optional arguments:
-h, --help show this help message and exit
Run Code Online (Sandbox Code Playgroud) python ×1