Skip to content

Commit

Permalink
添加版本描述
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Nov 15, 2023
1 parent 4eebd2f commit 447dec7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<details>
<summary><strong>更新日志(点击展开):</strong></summary>

* 2023.11.15 添加test文件,添加自动构建可执行文件的脚本
* 2023.11.15 添加test文件,添加自动构建可执行文件的脚本,添加版本描述
* 2023.11.15 [v2.2.5变化较大]重构解密脚本的返回值,重构命令行参数
* 2023.11.15 修复无法获取wxid的bug
* 2023.11.14 修复部分bug
Expand Down
8 changes: 5 additions & 3 deletions pywxdump/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
# Author: xaoyaoo
# Date: 2023/10/14
# -------------------------------------------------------------------------------
import json
import argparse
import os
import importlib.metadata

from . import *

Expand Down Expand Up @@ -152,7 +151,6 @@ def run(self, args):
print("[-] 输入数据库路径不存在")
return


app = Flask(__name__, template_folder='./show_chat/templates')
app.logger.setLevel(logging.ERROR)

Expand Down Expand Up @@ -263,6 +261,10 @@ def console_run():
# 创建命令行参数解析器
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)

version = importlib.metadata.version('pywxdump')
version = f"PyWxDump {version}"
parser.add_argument('-V', '--version', action='version', version=version)

# 添加子命令解析器
subparsers = parser.add_subparsers(dest="mode", help="""运行模式:""", required=True, metavar="mode")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

version = "2.2.5"
version = "2.2.6"
setup(
name="pywxdump",
author="xaoyaoo",
Expand Down

0 comments on commit 447dec7

Please sign in to comment.