Set window title by control message

This commit is contained in:
Iwasaki Yudai 2015-08-23 20:40:18 +09:00
parent 67b54b7f20
commit a765d6c660
7 changed files with 106 additions and 55 deletions

10
main.go
View file

@ -56,7 +56,8 @@ func main() {
cli.ShowAppHelp(c)
os.Exit(1)
}
app := app.New(
app, err := app.New(
app.Options{
c.String("addr"),
c.String("port"),
@ -67,11 +68,16 @@ func main() {
c.Args(),
},
)
err := app.Run()
if err != nil {
fmt.Println(err)
os.Exit(2)
}
err = app.Run()
if err != nil {
fmt.Println(err)
os.Exit(3)
}
}
cli.AppHelpTemplate = helpTemplate