summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go26
1 files changed, 6 insertions, 20 deletions
diff --git a/argv.go b/argv.go
index 8637176..2bcbf4e 100644
--- a/argv.go
+++ b/argv.go
@@ -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)
}
-*/