Skip to content

纯粹优化下入口代码,因为看到if else太多了 #7345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 16, 2025

Conversation

ENg-122
Copy link
Contributor

@ENg-122 ENg-122 commented Mar 17, 2025

What does this PR do?

我想优化下代码
Fixes # (issue)

Before submitting

elif command == Command.EXPORT:
export_model()
elif command == Command.TRAIN:
command = sys.argv.pop(1) if len(sys.argv) != 1 else CMD_FUNC_MAP["help"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else "help"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的 我来修改一下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改 辛苦您评审下

@hiyouga hiyouga merged commit 8543400 into hiyouga:main Apr 16, 2025
12 checks passed
@hiyouga hiyouga added the solved This problem has been already solved label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants