16 lines
247 B
Go
16 lines
247 B
Go
|
|
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:])
|
||
|
|
}
|