summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--args.go6
-rw-r--r--main.go1
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