diff options
| author | Jeff Carr <[email protected]> | 2025-08-16 16:24:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-16 21:50:27 -0500 |
| commit | e2783ce0699b0867209a8a024e7aa1f3d187b76f (patch) | |
| tree | 22286babadb953e8fe8c2e0a395dbeb71db0e14f /argv.go | |
| parent | 97f0204f5a85ede861ae4d43b3173d38d70725f5 (diff) | |
check plugins with Exec()v0.22.46
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -11,11 +11,12 @@ 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"` + 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"` } /* @@ -32,6 +33,11 @@ func ArgToolkit() string { func InitArg() { arg.Register(&argGui) + + if argGui.GuiCheck != "" { + // does os.Exec() and does not return + TestPluginAndExit() + } } /* |
