mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-22 19:59:25 +08:00
修改配置文件参数conf
This commit is contained in:
@@ -72,7 +72,7 @@ func init() {
|
|||||||
viper.SetEnvPrefix("link")
|
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 {
|
for _, v := range configs {
|
||||||
if v.Typ == cfgStr {
|
if v.Typ == cfgStr {
|
||||||
|
Reference in New Issue
Block a user