mirror of
https://github.com/yudai/gotty.git
synced 2026-03-06 05:40:17 +01:00
Set window title by control message
This commit is contained in:
parent
67b54b7f20
commit
a765d6c660
7 changed files with 106 additions and 55 deletions
10
main.go
10
main.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue