diff options
| -rw-r--r-- | args.go | 6 | ||||
| -rw-r--r-- | main.go | 1 |
2 files changed, 3 insertions, 4 deletions
@@ -11,10 +11,8 @@ This struct can be used with the go-arg package. These are the generic default command line arguments for the 'GUI' package */ type ArgsGui struct { - GuiPlugin string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui]"` - GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` - // this doesn't work, maybe it can't work - // GuiStdout bool `arg:"--gui-stdout" help:"send STDOUT and STDERR to /tmp/go-gui.log"` + GuiPlugin string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui,nogui]"` + GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` } /* @@ -269,6 +269,7 @@ func (n *Node) Default() *Node { return n } log.Log(WARN, "LoadToolkit() failed for =", argGui.GuiPlugin) + return nil } // if DISPLAY isn't set, return since gtk can't load // TODO: figure out how to check what to do in macos and mswindows |
