add -version option to display version and quit
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
7494823b07
commit
e0e5c742e3
6
main.go
6
main.go
@ -33,9 +33,15 @@ func main() {
|
|||||||
hubsec := flag.String("hubsecurity", "Hub-Security", "Nick used for administrative events")
|
hubsec := flag.String("hubsecurity", "Hub-Security", "Nick used for administrative events")
|
||||||
verbose := flag.Bool("verbose", false, "Display debugging information")
|
verbose := flag.Bool("verbose", false, "Display debugging information")
|
||||||
autojoin := flag.Bool("autojoin", true, "Automatically join clients to the channel")
|
autojoin := flag.Bool("autojoin", true, "Automatically join clients to the channel")
|
||||||
|
version := flag.Bool("version", false, "Display version and exit")
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
if *version {
|
||||||
|
log.Printf("%s version %s\n", APP_NAME, APP_VERSION)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("Listening on '%s'...", *ircAddress)
|
log.Printf("Listening on '%s'...", *ircAddress)
|
||||||
if *autojoin {
|
if *autojoin {
|
||||||
log.Printf("Clients will be automatically joined to the channel.")
|
log.Printf("Clients will be automatically joined to the channel.")
|
||||||
|
Loading…
Reference in New Issue
Block a user