From 2271527d810b91ca1764ca046b687dcbaf2b8dac Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 11 Jul 2021 20:26:22 +0800 Subject: [PATCH] fix: redefined -v flag (#580) Signed-off-by: Bo-Yi Wu --- README.md | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7661a6..f09640d 100644 --- a/README.md +++ b/README.md @@ -294,7 +294,7 @@ Huawei Options: Common Options: --topic iOS or Android topic message -h, --help Show this message - -v, --version Show version + -V, --version Show version ``` ### Send Android notification diff --git a/main.go b/main.go index c518e78..94bc255 100644 --- a/main.go +++ b/main.go @@ -54,7 +54,7 @@ func main() { ) flag.BoolVar(&showVersion, "version", false, "Print version information.") - flag.BoolVar(&showVersion, "v", false, "Print version information.") + flag.BoolVar(&showVersion, "V", false, "Print version information.") flag.StringVar(&configFile, "c", "", "Configuration file path.") flag.StringVar(&configFile, "config", "", "Configuration file path.") flag.StringVar(&opts.Core.PID.Path, "pid", "", "PID file path.") @@ -406,7 +406,7 @@ Huawei Options: Common Options: --topic iOS, Android or Huawei topic message -h, --help Show this message - -v, --version Show version + -V, --version Show version ` // usage will print out the flag options for the server.