Skip to content

Commit 12a1074

Browse files
committed
fix
1 parent 1d59264 commit 12a1074

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pywxdump/cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ def init_parses(self, parser):
198198

199199
def run(self, args):
200200
print(f"[*] PyWxDump v{pywxdump.__version__}")
201-
# merge和(msg_path,micro_path,media_path) 二选一
202-
if (not args.merge_path) or (not args.msg_path and not args.micro_path and not args.media_path):
203-
print("[-] 请输入数据库路径([merge_path] or [msg_path,micro_path,media_path])")
201+
# (merge)和(msg_path,micro_path,media_path) 二选一
202+
if not args.merge_path and not (args.msg_path and args.micro_path and args.media_path):
203+
print("[-] 请输入数据库路径([merge_path] or [msg_path, micro_path, media_path])")
204204
return
205205

206206
# 从命令行参数获取值
@@ -220,7 +220,6 @@ def run(self, args):
220220

221221
if not os.path.exists(args.msg_path) or not os.path.exists(args.micro_path) or not os.path.exists(
222222
args.media_path):
223-
print(os.path.exists(args.msg_path), os.path.exists(args.micro_path), os.path.exists(args.media_path))
224223
print("[-] 输入数据库路径不存在")
225224
return
226225

0 commit comments

Comments
 (0)