summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 20:04:22 -0600
committerJeff Carr <[email protected]>2024-11-15 20:04:22 -0600
commitfd65e8f02e59f115c33fe73475742693027eebbd (patch)
treea7ddfc89b33322648948985e015fbbf1a0663a37 /main.go
parent8a144eb5fd1ea8a799af51d93518b8080e6624f1 (diff)
try to add --no-guiv0.22.6
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 31f47f2..f04cc3c 100644
--- a/main.go
+++ b/main.go
@@ -263,6 +263,10 @@ func New() *Node {
// try to load andlabs, if that doesn't work, fall back to the console
func (n *Node) Default() *Node {
var err error
+ if argGui.NoGui {
+ log.Log(WARN, "--no-gui chill Winston. I don't need no gui")
+ return n
+ }
if argGui.GuiPlugin != "" {
log.Log(WARN, "New.Default() try toolkit =", argGui.GuiPlugin)
if n, err = n.LoadToolkit(argGui.GuiPlugin); err == nil {