summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-17 13:37:55 -0500
committerJeff Carr <[email protected]>2025-08-17 22:55:02 -0500
commit6c099ef51399cfc81a25434e92f60a8d809503cd (patch)
treecb247368aeb9832970fd2e46dd4a0f540a4ca5f4 /argv.go
parente2783ce0699b0867209a8a024e7aa1f3d187b76f (diff)
work around GO plugin load failures not being cleaned up
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go15
1 files changed, 7 insertions, 8 deletions
diff --git a/argv.go b/argv.go
index fd34701..b94b2e6 100644
--- a/argv.go
+++ b/argv.go
@@ -11,12 +11,11 @@ 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 {
- NoGui bool `arg:"--no-gui" help:"ignore all these gui problems"`
- GuiPlugin string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui,stdin]"`
- GuiFile string `arg:"--gui-file" help:"Use a specific plugin.so file"`
- GuiTest string `arg:"--gui-test" help:"test a specific plugin.so will load"`
- GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"`
- GuiCheck string `arg:"--gui-check-plugin" help:"used to check if the plugin loads"`
+ NoGui bool `arg:"--no-gui" help:"ignore all these gui problems"`
+ GuiPlugin string `arg:"--gui" help:"Use this gui toolkit [andlabs,gocui,nocui,stdin]"`
+ GuiFile string `arg:"--gui-file" help:"Use a specific plugin.so file"`
+ GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"`
+ GuiPluginHack string `arg:"--gui-check-plugin" help:"hack to verify GO plugins load"`
}
/*
@@ -34,9 +33,9 @@ func ArgToolkit() string {
func InitArg() {
arg.Register(&argGui)
- if argGui.GuiCheck != "" {
+ if argGui.GuiPluginHack != "" {
// does os.Exec() and does not return
- TestPluginAndExit()
+ testPluginAndExit()
}
}