mirror of https://github.com/bjdgyc/anylink.git
修改配置文件参数conf
This commit is contained in:
parent
65bbb216fc
commit
ce2b657ab3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue