From b2feffce92c86fc88b942da92cbc8084ed2340be Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 16 Feb 2024 20:36:02 -0600 Subject: [PATCH] add argv to open the logger window --- args.go | 5 +++++ main.go | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/args.go b/args.go index bb9e793..4f81c66 100644 --- a/args.go +++ b/args.go @@ -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) diff --git a/main.go b/main.go index af2bb8d..7a9af11 100644 --- a/main.go +++ b/main.go @@ -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 {