summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-08 22:33:18 -0600
committerJeff Carr <[email protected]>2024-01-08 22:33:18 -0600
commit2b87ba4eaa47febdd9cb2b54515ab0e7945d3c1e (patch)
tree574c25324a738c938a33e14600930a8a5d33b2e9 /args.go
parente2e4726ef7de04023e6c15a9ce1474f246e8b978 (diff)
go.wit.com/log change
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
-rw-r--r--args.go20
1 files changed, 9 insertions, 11 deletions
diff --git a/args.go b/args.go
index c3db742..72a0e1c 100644
--- a/args.go
+++ b/args.go
@@ -9,7 +9,9 @@ import (
var INFO log.LogFlag
var POLL log.LogFlag
-var BUG log.LogFlag
+var CHAN log.LogFlag
+var WARN log.LogFlag
+
var argDebugger ArgsDebugger
// This struct can be used with the go-arg package
@@ -25,15 +27,11 @@ func ArgDebug() bool {
func init() {
arg.Register(&argDebugger)
- INFO.B = false
- INFO.Name = "INFO"
- INFO.Subsystem = "bugger"
- INFO.Desc = "simple debugging Info()"
- INFO.Register()
+ full := "go.wit.com/gui/debugger"
+ short := "bugger"
- POLL.B = false
- POLL.Name = "POLL"
- POLL.Subsystem = "bugger"
- POLL.Desc = "watch the debugger poll things"
- POLL.Register()
+ INFO.NewFlag("INFO", false, full, short, "simple debugging Info()")
+ POLL.NewFlag("POLL", false, full, short, "watch the debugger poll things")
+ CHAN.NewFlag("CHAN", true, full, short, "chan() test code output")
+ WARN.NewFlag("WARN", true, full, short, "should warn the user")
}