refacetor main.go
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
a7a633bed1
commit
c1b9c19506
16
main.go
16
main.go
|
@ -95,13 +95,15 @@ func createPIDFile() error {
|
||||||
func main() {
|
func main() {
|
||||||
opts := config.ConfYaml{}
|
opts := config.ConfYaml{}
|
||||||
|
|
||||||
var showVersion bool
|
var (
|
||||||
var configFile string
|
showVersion bool
|
||||||
var topic string
|
configFile string
|
||||||
var message string
|
topic string
|
||||||
var token string
|
message string
|
||||||
var proxy string
|
token string
|
||||||
var title string
|
proxy string
|
||||||
|
title string
|
||||||
|
)
|
||||||
|
|
||||||
flag.BoolVar(&showVersion, "version", false, "Print version information.")
|
flag.BoolVar(&showVersion, "version", false, "Print version information.")
|
||||||
flag.BoolVar(&showVersion, "v", false, "Print version information.")
|
flag.BoolVar(&showVersion, "v", false, "Print version information.")
|
||||||
|
|
Loading…
Reference in New Issue