Mention --once option in README

This commit is contained in:
Iwasaki Yudai 2015-08-24 19:49:57 +09:00
parent bfa24e29f9
commit 6d1a19b1d5
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ By default, gotty starts a web server at port 8080. Open the URL on your web bro
--tls-key "~/.gotty.key" TLS/SSL key [$GOTTY_TLS_KEY]
--title-format "GoTTY - {{ .Command }} ({{ .Hostname }})" Title format of browser window [$GOTTY_TITLE_FORMAT]
--auto-reconnect "-1" Seconds to automatically reconnect to the server when the connection is closed (default: disabled) [$GOTTY_AUTO_RECONNECT]
--once Accept only one client and exit on disconnection [$GOTTY_ONCE]
```
### Profile File

View File

@ -82,7 +82,7 @@ func main() {
},
cli.BoolFlag{
Name: "once",
Usage: "Accept only one client and exits on disconnection",
Usage: "Accept only one client and exit on disconnection",
EnvVar: "GOTTY_ONCE",
},
}