fix: redefined -v flag (#580)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2021-07-11 20:26:22 +08:00 committed by GitHub
parent 9b918839b8
commit 2271527d81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -294,7 +294,7 @@ Huawei Options:
Common Options:
--topic <topic> iOS or Android topic message
-h, --help Show this message
-v, --version Show version
-V, --version Show version
```
### Send Android notification

View File

@ -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 <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.