diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 03:54:23 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 03:54:23 -0500 |
| commit | 507d3dac4e0f22a463ed0f2f6486576c5c9a0d23 (patch) | |
| tree | 12014e20fccdc10600031ac586f1c9df2d105cda /argv.go | |
| parent | 1441f90e5a4032c7419e252cc12c6e406d996ed3 (diff) | |
cleanup gui args
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 26 |
1 files changed, 6 insertions, 20 deletions
@@ -1,8 +1,6 @@ package gui -import ( - "go.wit.com/dev/alexflint/arg" -) +import "go.wit.com/dev/alexflint/arg" var argGui ArgsGui @@ -11,12 +9,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"` - GuiBuild bool `arg:"--gui-build" help:"attempt to build the GUI plugins"` - GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` - GuiPluginHack string `arg:"--gui-check-plugin" help:"hack to verify GO plugins load"` + // 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"` + // GuiBuild bool `arg:"--gui-build" help:"attempt to build the GUI plugins"` + // GuiVerbose bool `arg:"--gui-verbose" help:"enable all logging"` } /* @@ -33,15 +30,4 @@ func ArgToolkit() string { func InitArg() { arg.Register(&argGui) - - if argGui.GuiPluginHack != "" { - // does os.Exec() and does not return - TestPluginAndExit() - } -} - -/* -func init() { - arg.Register(&argGui) } -*/ |
