summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 03:54:32 -0500
committerJeff Carr <[email protected]>2025-09-09 03:54:32 -0500
commit3e4383e1316f0e9c824aea8a9e38465721477350 (patch)
tree42f88cbcfe40f4a6deba2ff3e40a6b860b208ccf
parentb8cafe1bd3b0dbb8fd33bea4c806541ac7932e66 (diff)
test callback()
-rw-r--r--gui.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/gui.go b/gui.go
index d731b3f..fe44f30 100644
--- a/gui.go
+++ b/gui.go
@@ -17,6 +17,7 @@ are the generic default command line arguments for the 'GUI' package
*/
type ArgsGui struct {
GuiPluginHack string `arg:"--gui-check-plugin" help:"hack to verify GO plugins load"`
+ GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"`
}
/*
@@ -48,10 +49,17 @@ func ArgToolkit() string {
func postMustParse(s string) string {
switch s {
case "PluginHack":
- return argGui.GuiPluginHack
+ case "VERBOSE":
+ if argGui.GuiVerbose == true {
+ return "true"
+ }
+ return "false"
+ case "FILE":
+ return "someplugin"
default:
return ""
}
+ return "unknown"
}
func Gui() *gui.Node {
@@ -60,6 +68,7 @@ func Gui() *gui.Node {
os.Exit(0)
}
arg.Register(&argGui)
+ gui.InitArg()
return gui.PreInit(postMustParse)
}