parent
aa86a34b76
commit
28f8e61de8
|
@ -72,7 +72,7 @@ By default, GoTTY starts a web server at port 8080. Open the URL on your web bro
|
|||
--height value Static height of the screen, 0(default) means dynamically resize (default: 0) [$GOTTY_HEIGHT]
|
||||
--ws-origin value A regular expression that matches origin URLs to be accepted by WebSocket. No cross origin requests are acceptable by default [$GOTTY_WS_ORIGIN]
|
||||
--term value Terminal name to use on the browser, one of xterm or hterm. (default: "xterm") [$GOTTY_TERM]
|
||||
--enable-webgl Enable WebGL renderer (default: false) [$GOTTY_ENABLE_WEBGL]
|
||||
--enable-webgl Enable WebGL renderer (default: true) [$GOTTY_ENABLE_WEBGL]
|
||||
--close-signal value Signal sent to the command process when gotty close it (default: SIGHUP) (default: 1) [$GOTTY_CLOSE_SIGNAL]
|
||||
--close-timeout value Time in seconds to force kill process after client is disconnected (default: -1) (default: -1) [$GOTTY_CLOSE_TIMEOUT]
|
||||
--config value Config file path (default: "~/.gotty") [$GOTTY_CONFIG]
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
* Check that cross-compilation works.
|
||||
* Ensure NEWS is up-to-date
|
||||
* Ensure contributor list is up-to-date
|
||||
* Ensure VERSION is set correctly in Makefile
|
||||
* Ensure usage is correct in Makefile
|
||||
|
|
|
@ -46,10 +46,11 @@ func GenerateFlags(options ...interface{}) (flags []cli.Flag, mappings map[strin
|
|||
})
|
||||
case reflect.Bool:
|
||||
flags = append(flags, &cli.BoolFlag{
|
||||
Name: flagName,
|
||||
Usage: flagDescription,
|
||||
EnvVars: []string{envName},
|
||||
Aliases: aliases,
|
||||
Name: flagName,
|
||||
Usage: flagDescription,
|
||||
EnvVars: []string{envName},
|
||||
Aliases: aliases,
|
||||
DefaultText: field.Tag("default"),
|
||||
})
|
||||
case reflect.Int:
|
||||
flags = append(flags, &cli.IntFlag{
|
||||
|
|
Loading…
Reference in New Issue