update
parent
abce1f5c8d
commit
f17cf17e4f
|
@ -11,6 +11,9 @@ var (
|
|||
)
|
||||
|
||||
func LoadFlag() {
|
||||
if !pflag.Parsed() {
|
||||
pflag.Parse()
|
||||
}
|
||||
err := vp.BindPFlags(pflag.CommandLine)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("load command line fail: %s", err))
|
||||
|
|
Loading…
Reference in New Issue