Skip to content

Commit 6e915be

Browse files
committed
修改--help说明
1 parent a67b3d6 commit 6e915be

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/checkdownload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def export_game(directory: str):
330330
copy(savepath, savepath_new)
331331

332332
# 把自身也复制过去
333-
copy(sys.argv[0], mds_new.absGameDir)
333+
shutil.copy(sys.argv[0], mds_new.absGameDir)
334334

335335

336336

src/main.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,29 @@
2020

2121

2222
def parse_args():
23-
parse = ArgumentParser(description='一个MC启动器 {}'.format(LAUNCHER_VERSION), usage='%(prog)s [optional]',epilog='https://github.com/calllivecn/MCLauncher')
23+
parse = ArgumentParser(
24+
description=f"一个MC启动器 {LAUNCHER_VERSION}",
25+
usage='%(prog)s [optional]',
26+
epilog='https://github.com/calllivecn/MCLauncher'
27+
)
2428

2529
parse.add_argument("--install-game", action="store_true", help="安装游戏")
2630

27-
parse.add_argument("--check-game", action="store_true", help="检查游戏资源完整性")
31+
parse.add_argument("--check-game", action="store_true", help="检查游戏资源完整性, 缺少的会下载。")
2832

2933
parse.add_argument("--export-game", action="store", help="导出指定游戏版本到新目录")
3034

31-
parse.add_argument("-u", "--username", action="store", help="MC 游戏用户名")
35+
parse.add_argument("-u", "--username", action="store", help="MC 游戏用户名。和--online一起使用是切换微软账号。")
3236

33-
parse.add_argument("--online", action="store_true", help="使用微软账号登录")
37+
parse.add_argument("--online", action="store_true", help="使用微软账号登录。单独使用时,是添加一个新的微软账号。")
3438

35-
parse.add_argument("--select-version", action="store_true", help="选择游戏版本。(默认启动本地最新版)")
39+
parse.add_argument("--select-version", action="store_true", help="交互选择游戏版本。")
3640

37-
parse.add_argument("--resolution", action="store", help="设置游戏初始窗口大小, 例如:1920x1080(默认自动)")
41+
parse.add_argument("--resolution", action="store", help="设置游戏启动时窗口大小, 例如:1920x1080(默认自动)")
3842

39-
parse.add_argument("--java-path", action="store", help="指定 java 路径")
43+
parse.add_argument("--java-path", action="store", help="指定java路径")
4044

41-
parse.add_argument("--jvm-args", action="store", help="设置 jvm 参数")
45+
parse.add_argument("--jvm-args", action="store", help="设置jvm自定义参数")
4246

4347
parse.add_argument("-v", "--verbose", action="count", default=0, help="verbose")
4448

@@ -92,12 +96,10 @@ def main():
9296
# 更新游戏版本
9397
if args.select_version:
9498
# 选择游戏版本
95-
# usercfg.currentversion = select_local(mds.versions, latest=False)
9699
usercfg.currentversion = select_local(mds.versions)
97100

98101
elif usercfg.currentversion is None:
99102
logger.debug(f"currentversion is None ... --> {usercfg.currentversion}")
100-
# usercfg.currentversion = select_local(mds.versions, latest=False)
101103
usercfg.currentversion = select_local(mds.versions)
102104

103105
# else:

0 commit comments

Comments
 (0)