diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 18686fa..a1c41c9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -39,7 +39,7 @@ jobs: - name: Build run: make build - name: Version - run: ./build/joj3 -v + run: ./build/joj3 -version - name: Test run: | make prepare-test diff --git a/cmd/healthcheck/main.go b/cmd/healthcheck/main.go index 272b634..ca09048 100644 --- a/cmd/healthcheck/main.go +++ b/cmd/healthcheck/main.go @@ -40,7 +40,7 @@ var Version string // Generally, err is used for runtime errors, and checkRes is used for the result of the checks. func main() { var gitWhitelist, metaFile, releaseTags []string - showVersion := flag.Bool("v", false, "print current version") + showVersion := flag.Bool("version", false, "print current version") rootDir := flag.String("root", "", "") repo := flag.String("repo", "", "") localList := flag.String("localList", "", "") diff --git a/cmd/joj3/main.go b/cmd/joj3/main.go index 24f65ff..8f45bb5 100644 --- a/cmd/joj3/main.go +++ b/cmd/joj3/main.go @@ -100,7 +100,7 @@ var ( func init() { flag.StringVar(&metaConfPath, "meta-conf", "meta-conf.toml", "meta config file path") flag.StringVar(&msg, "msg", "", "message to trigger the running, leave empty to use git commit message on HEAD") - showVersion = flag.Bool("v", false, "print current version") + showVersion = flag.Bool("version", false, "print current version") } func mainImpl() error { diff --git a/cmd/sample/main.go b/cmd/sample/main.go index 8e0713f..1a8fe97 100644 --- a/cmd/sample/main.go +++ b/cmd/sample/main.go @@ -12,7 +12,7 @@ import ( var Version string func main() { - showVersion := flag.Bool("v", false, "print current version") + showVersion := flag.Bool("version", false, "print current version") score := flag.Int("score", 0, "score") flag.Parse() if *showVersion {