@@ -125,7 +125,7 @@ func parseArgs() *Options {
webport := flag.Int(
"webport",
4040,
- "The port on which the web interface is served")
+ "The port on which the web interface is served, -1 to disable")
logto := flag.String(
"log",
@@ -255,7 +255,10 @@ func Main() {
// init ui
ctl := ui.NewController()
- web.NewWebView(ctl, s, opts.webport)
+ if opts.webport != -1 {
+ web.NewWebView(ctl, s, opts.webport)
+ }
+
if opts.logto != "stdout" {
term.New(ctl, s)
}