2
0

fix bug of paring config file from command line

This commit is contained in:
eschao 2018-01-05 13:29:05 +08:00 committed by GitHub
parent 1462bafb6e
commit a50330fa13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,7 @@ func ParseCli(i interface{}) error {
// config.properties
func ParseConfig(i interface{}, configFlag string) error {
configFile := flag.String(configFlag, "", "Specifiy configuration file")
flag.Parse()
return ParseConfigFile(i, *configFile)
}