diff --git a/x2paddle/convert.py b/x2paddle/convert.py index 62be5cc6c981cadf042c5dfd664730f87309c80b..2a604c070658560dd591cab0cb43b5ed319a375a 100644 --- a/x2paddle/convert.py +++ b/x2paddle/convert.py @@ -14,6 +14,7 @@ from six import text_type as _text_type import argparse +import sys def arg_parser(): @@ -107,6 +108,10 @@ def caffe2paddle(proto, weight, save_dir, caffe_proto): def main(): + if len(sys.argv) < 2: + print("Use \"x2paddle -h\" to print the help information") + return + parser = arg_parser() args = parser.parse_args()