修改配置文件参数conf

This commit is contained in:
bjdgyc
2021-06-07 16:01:41 +08:00
committed by GitHub
parent 65bbb216fc
commit ce2b657ab3

View File

@@ -72,7 +72,7 @@ func init() {
viper.SetEnvPrefix("link")
// 基础配置
rootCmd.Flags().StringVarP(&cfgFile, "config", "c", "./conf/server.toml", "config file")
rootCmd.Flags().StringVarP(&cfgFile, "conf", "c", "./conf/server.toml", "config file")
for _, v := range configs {
if v.Typ == cfgStr {