提交 3169b4cb 编写于 作者: S sole

buid.py: Show help message when no arguments are specified

上级 3f16e363
......@@ -9,6 +9,7 @@ except ImportError:
import os
import tempfile
import sys
def merge(files):
......@@ -398,6 +399,11 @@ def parse_args():
args, remainder = parser.parse_args()
# If no arguments have been passed, show the help message and exit
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
return args
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册