Skip to content

Conversation

fantacymaker
Copy link
Contributor

解决issue: #6

godaemon.go Outdated
i := 0
for ; i < len(args); i++ {
if args[i] == "-d=true" {
if strings.HasPrefix(args[i], "-d") {
Copy link
Owner

Choose a reason for hiding this comment

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

虽然结果是对的,但是 if args[i] == "-d" || args[i] == "-d=true" 更容易理解

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已更新

@icattlecoder icattlecoder merged commit ae28f9f into icattlecoder:master Jan 7, 2025
@fantacymaker fantacymaker deleted the feat/set_false_when_d branch January 7, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants