diff options
| author | Jeff Carr <[email protected]> | 2024-02-16 20:36:02 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-16 20:36:02 -0600 | 
| commit | b2feffce92c86fc88b942da92cbc8084ed2340be (patch) | |
| tree | 9374c70f620400ea8070670e8f91b447eb4d494e | |
| parent | 8c873d7ab223458ed00e44996d121bcf5b2fd0eb (diff) | |
add argv to open the logger windowv0.22.9v0.22.8v0.22.7v0.22.6v0.22.5v0.22.45v0.22.44v0.22.43v0.22.42v0.22.41v0.22.40v0.22.4v0.22.39v0.22.38v0.22.37v0.22.36v0.22.35v0.22.34v0.22.33v0.22.32v0.22.31v0.22.30v0.22.3v0.22.29v0.22.28v0.22.27v0.22.26v0.22.25v0.22.24v0.22.23v0.22.22v0.22.21v0.22.20v0.22.2v0.22.19v0.22.18v0.22.17v0.22.16v0.22.15v0.22.14v0.22.13v0.22.12v0.22.11v0.22.10v0.22.1v0.22.0v0.21.0v0.20.8master
| -rw-r--r-- | args.go | 5 | ||||
| -rw-r--r-- | main.go | 4 | 
2 files changed, 5 insertions, 4 deletions
@@ -17,6 +17,7 @@ var argDebugger ArgsDebugger  // This struct can be used with the go-arg package  type ArgsDebugger struct {  	Debugger bool `arg:"--debugger" help:"open the debugger window"` +	Logger bool `arg:"--logger" help:"open the log.* control window"`  }  // returns true if --gui-debug was passed from the command line @@ -24,6 +25,10 @@ func ArgDebug() bool {  	return argDebugger.Debugger  } +func ArgLogger() bool { +	return argDebugger.Logger +} +  func init() {  	arg.Register(&argDebugger) @@ -26,10 +26,6 @@ func DebugWindow() {  	me.bugWin.Make()  	DebugWindow2(me.bugWin.Box(), "Debug Tab")  	me.bugWin.Show() - -	if ArgDebug() { -		// log.SetTmp() -	}  }  func DebugWindow2(newB *gui.Node, title string) *gui.Node {  | 
