flag 처리
This commit is contained in:
15
core/flag/commandline.go
Normal file
15
core/flag/commandline.go
Normal file
@ -0,0 +1,15 @@
|
||||
package flag
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
|
||||
var commandLine = flag.NewFlagSet("maingate", flag.ContinueOnError)
|
||||
var Devflag = commandLine.Bool("dev", false, "")
|
||||
|
||||
func init() {
|
||||
commandLine.SetOutput(io.Discard)
|
||||
commandLine.Parse(os.Args[1:])
|
||||
}
|
||||
Reference in New Issue
Block a user