修改配置文件参数conf

This commit is contained in:
bjdgyc 2021-06-07 16:01:41 +08:00 committed by GitHub
parent 65bbb216fc
commit ce2b657ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 {