From 05ab2e26fa321340bc8cb91697d605672a2e5dd7 Mon Sep 17 00:00:00 2001 From: xaoyo Date: Wed, 22 Nov 2023 18:40:37 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0all=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E4=B8=AD=E8=A7=A3=E5=AF=86=E9=94=99=E8=AF=AF=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=86=99=E5=85=A5=E6=96=87=E4=BB=B6,?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug=20#28=20#29?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pywxdump/command.py b/pywxdump/command.py index 96534dcc..e9a67a56 100644 --- a/pywxdump/command.py +++ b/pywxdump/command.py @@ -374,7 +374,8 @@ def console_run(): # 检查是否需要显示帮助信息 if len(sys.argv) == 1: sys.argv.append('-h') - elif len(sys.argv) == 2 and sys.argv[1] in modes.keys(): + elif len(sys.argv) == 2 and sys.argv[1] in modes.keys() and sys.argv[1] not in [main_all.mode, main_wx_info.mode, + main_wx_db_path.mode]: sys.argv.append('-h') args = parser.parse_args() # 解析命令行参数