From 0e94c204d39da3dd892042ddcd20f18fc8ff37af Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 20 Jun 2023 17:32:43 +0900 Subject: [PATCH] =?UTF-8?q?flag=20=EC=97=90=EB=9F=AC=20=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=20=EB=AC=B4=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flags.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flags.go b/flags.go index 54f5e56..b9d8c46 100644 --- a/flags.go +++ b/flags.go @@ -2,6 +2,7 @@ package gocommon import ( "flag" + "io" "os" ) @@ -16,5 +17,6 @@ var NeedPrefetch = commandLine.Bool("prefetch", false, "") var Linkupdate = commandLine.String("updatelink", "", "") func init() { + commandLine.SetOutput(io.Discard) commandLine.Parse(os.Args[1:]) }