From ae28f9f73e465b7e32b401b7391a956b5c43c8b7 Mon Sep 17 00:00:00 2001 From: fantacymaker <127767549+fantacymaker@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:47:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=81=BF=E5=85=8D=20-d=20=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E5=BE=AA=E7=8E=AF=E8=B0=83=E7=94=A8=20(#7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 避免 -d 出现循环调用 --- godaemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godaemon.go b/godaemon.go index 2542a9e..4cdde69 100644 --- a/godaemon.go +++ b/godaemon.go @@ -17,7 +17,7 @@ func init() { args := os.Args[1:] i := 0 for ; i < len(args); i++ { - if args[i] == "-d=true" { + if args[i] == "-d" || args[i] == "-d=true" { args[i] = "-d=false" break }