Skip to content

Commit bb59f15

Browse files
committed
提交主菜单
1 parent e3a5a5c commit bb59f15

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

image_converter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from PIL import Image
55
from pathlib import Path
66

7+
version = "1.0"
8+
79

810
def convert_image(input_path, output_path, format, quality=85):
911
"""
@@ -114,7 +116,7 @@ def batch_convert(input_folder, output_folder, operation, format, quality=85):
114116
def main():
115117
# 创建命令行解析器
116118
parser = argparse.ArgumentParser(
117-
description="全能图像转换工具 v1.0",
119+
description="全能图像转换工具 v" + version,
118120
formatter_class=argparse.RawTextHelpFormatter
119121
)
120122

@@ -158,7 +160,7 @@ def main():
158160
parser.add_argument(
159161
'-v', '--version',
160162
action='version',
161-
version='全能图像转换工具 v1.0'
163+
version='全能图像转换工具 v' + version
162164
)
163165

164166
# 解析参数

0 commit comments

Comments
 (0)