summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-31 16:08:18 -0600
committerJeff Carr <[email protected]>2023-12-31 16:08:18 -0600
commite85d453fd8bd75e290f2306c3b0150444c57ce2b (patch)
treeec725e84594dff2866c4a7462f0b66256405dd7a /args.go
parent92441e8c635aa3e1d1f148e4780c0c323f4b0f95 (diff)
attempt at log.Register(guiDebug) debugging flag
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
-rw-r--r--args.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/args.go b/args.go
index cc973b1..fbcfe3d 100644
--- a/args.go
+++ b/args.go
@@ -2,6 +2,8 @@ package gui
import (
arg "github.com/alexflint/go-arg"
+
+ newlog "go.wit.com/log"
)
var argGui ArgsGui
@@ -15,6 +17,12 @@ type ArgsGui struct {
func init() {
arg.Register(&argGui)
+
+ newlog.Register("gui", "debugGui", &debugGui)
+
+ for _, s := range newlog.ListAll() {
+ newlog.Info("go.wit.org/gui ListAll() returned:", s)
+ }
}
// returns the toolkit