flag.parse 문제 해결
This commit is contained in:
@ -9,10 +9,6 @@ var commandLine = flag.NewFlagSet("maingate", flag.ExitOnError)
|
||||
var Devflag = commandLine.Bool("dev", false, "")
|
||||
var Noauth = commandLine.Bool("noauth", false, "")
|
||||
|
||||
func Parsed() bool {
|
||||
return commandLine.Parsed()
|
||||
}
|
||||
|
||||
func Parse() error {
|
||||
return commandLine.Parse(os.Args[1:])
|
||||
func init() {
|
||||
commandLine.Parse(os.Args[1:])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user