Commit 6d1a19b1 by Iwasaki Yudai

Mention `--once` option in README

1 parent bfa24e29
Showing with 2 additions and 1 deletions
...@@ -60,6 +60,7 @@ By default, gotty starts a web server at port 8080. Open the URL on your web bro ...@@ -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] --tls-key "~/.gotty.key" TLS/SSL key [$GOTTY_TLS_KEY]
--title-format "GoTTY - {{ .Command }} ({{ .Hostname }})" Title format of browser window [$GOTTY_TITLE_FORMAT] --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] --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 ### Profile File
......
...@@ -82,7 +82,7 @@ func main() { ...@@ -82,7 +82,7 @@ func main() {
}, },
cli.BoolFlag{ cli.BoolFlag{
Name: "once", Name: "once",
Usage: "Accept only one client and exits on disconnection", Usage: "Accept only one client and exit on disconnection",
EnvVar: "GOTTY_ONCE", EnvVar: "GOTTY_ONCE",
}, },
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!