flag 에러 메시지 무시
This commit is contained in:
@ -2,6 +2,7 @@ package flag
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
|
||||
@ -10,5 +11,6 @@ var Devflag = commandLine.Bool("dev", false, "")
|
||||
var Noauth = commandLine.Bool("noauth", false, "")
|
||||
|
||||
func init() {
|
||||
commandLine.SetOutput(io.Discard)
|
||||
commandLine.Parse(os.Args[1:])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user