feat(cmd/joj3): add -msg back for backward compatibility
All checks were successful
build / build (push) Successful in 1m3s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-10-14 08:24:34 -04:00
parent 3c284ffea4
commit b1d10dc3f9
GPG Key ID: D47306D7062CDA9D

View File

@ -15,6 +15,7 @@ var (
confRoot string confRoot string
confName string confName string
tag string tag string
msg string
showVersion *bool showVersion *bool
Version string = "debug" Version string = "debug"
) )
@ -23,6 +24,8 @@ func init() {
flag.StringVar(&confRoot, "conf-root", ".", "root path for all config files") flag.StringVar(&confRoot, "conf-root", ".", "root path for all config files")
flag.StringVar(&confName, "conf-name", "conf.json", "filename for config files") flag.StringVar(&confName, "conf-name", "conf.json", "filename for config files")
flag.StringVar(&tag, "tag", "", "tag to trigger the running, when non-empty, should equal to the scope in msg") flag.StringVar(&tag, "tag", "", "tag to trigger the running, when non-empty, should equal to the scope in msg")
// TODO: remove this flag
flag.StringVar(&msg, "msg", "", "[DEPRECATED] will be ignored")
showVersion = flag.Bool("version", false, "print current version") showVersion = flag.Bool("version", false, "print current version")
} }