diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 04:38:01 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 04:38:01 -0500 | 
| commit | ec31997bca317fae2d83cfdea8bd1fcdbe76be93 (patch) | |
| tree | 9b6a6440f96f9fee5ca8e34ad5312c974cd8deb9 | |
| parent | 507d3dac4e0f22a463ed0f2f6486576c5c9a0d23 (diff) | |
cleaner common gui code
| -rw-r--r-- | argv.go | 4 | ||||
| -rw-r--r-- | init.go | 21 | 
2 files changed, 5 insertions, 20 deletions
@@ -1,7 +1,5 @@  package gui -import "go.wit.com/dev/alexflint/arg" -  var argGui ArgsGui  /* @@ -29,5 +27,5 @@ func ArgToolkit() string {  }  func InitArg() { -	arg.Register(&argGui) +	// arg.Register(&argGui)  } @@ -48,10 +48,6 @@ func colorBanner() {  	if version == "" {  		log.Warn("Warning: compiled without version", err)  	} -	if me.postMustParse != nil { -		log.Info("VERBOSE =", me.postMustParse("VERBOSE")) -		log.Info("FILE =", me.postMustParse("FILE")) -	}  	time.Sleep(3200 * time.Millisecond) // done for effect  } @@ -329,11 +325,6 @@ func New() *Node {  func PreInit(postMustParse func(string) string) *Node {  	initNew() -	/* -		if argGui.GuiVerbose { -			INFO.SetBool(true) -		} -	*/  	me.postMustParse = postMustParse  	return me.rootNode  } @@ -342,14 +333,10 @@ func PreInit(postMustParse func(string) string) *Node {  // try to load andlabs, if that doesn't work, fall back to the console  func (n *Node) Default() (string, error) {  	var err error -	/* -		// used to check if plugins load or not -		if argGui.GuiPluginHack != "" { -			// does os.Exec() and does not return -			TestPluginAndExit() -			os.Exit(0) -		} -	*/ +	argGui.GuiPlugin = me.postMustParse("DEFAULT") +	if me.postMustParse("VERBOSE") == "true" { +		INFO.SetBool(true) +	}  	if argGui.GuiPlugin != "" {  		log.Log(WARN, "New.Default() try toolkit =", argGui.GuiPlugin)  | 
