fix: 相关测试配置

This commit is contained in:
TsMask
2024-07-12 17:45:51 +08:00
parent 04b3fb3e43
commit 1104be0b19
5 changed files with 11 additions and 21 deletions

View File

@@ -27,9 +27,9 @@ func InitConfig() {
func initFlag() {
// --env prod
pflag.String("env", "prod", "Specify Run Environment Configuration local or prod")
// --c /etc/restconf.yaml
// -c /etc/restconf.yaml
pConfig := pflag.StringP("config", "c", "./etc/restconf.yaml", "Specify Configuration File")
// --c /etc/omc.yaml
// -c /etc/omc.yaml
pConfig := pflag.StringP("config", "c", "./etc/omc.yaml", "Specify Configuration File")
// --version
// -V
pVersion := pflag.BoolP("version", "V", false, "Output program version")