From 8a144eb5fd1ea8a799af51d93518b8080e6624f1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 13 Nov 2024 21:31:31 -0600 Subject: return when --gui nogui --- args.go | 6 ++---- main.go | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/args.go b/args.go index fbfda77..861d55b 100644 --- a/args.go +++ b/args.go @@ -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"` } /* diff --git a/main.go b/main.go index bdfe837..31f47f2 100644 --- a/main.go +++ b/main.go @@ -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 -- cgit v1.2.3