From b1d10dc3f92d6e8fdf590fdff2f6e63db28ce41b Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 14 Oct 2024 08:24:34 -0400 Subject: [PATCH] feat(cmd/joj3): add `-msg` back for backward compatibility --- cmd/joj3/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/joj3/main.go b/cmd/joj3/main.go index 57bc0c1..12d5dea 100644 --- a/cmd/joj3/main.go +++ b/cmd/joj3/main.go @@ -15,6 +15,7 @@ var ( confRoot string confName string tag string + msg string showVersion *bool Version string = "debug" ) @@ -23,6 +24,8 @@ func init() { flag.StringVar(&confRoot, "conf-root", ".", "root path for all 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") + // TODO: remove this flag + flag.StringVar(&msg, "msg", "", "[DEPRECATED] will be ignored") showVersion = flag.Bool("version", false, "print current version") }