summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-19 08:10:21 -0600
committerJeff Carr <[email protected]>2024-02-19 08:10:21 -0600
commitcddced4bc8e963c9e5a2af17c8e024a52bbc3c90 (patch)
treedd1ea79c8b7e3fd2213e6319b3ae78a06a2d0441 /args.go
parentf4605dbbd165348362ea38b6313b0818196cc675 (diff)
compiles and runs. maybe it's a plugin? maybe not
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
-rw-r--r--args.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/args.go b/args.go
new file mode 100644
index 0000000..88fcf53
--- /dev/null
+++ b/args.go
@@ -0,0 +1,30 @@
+package main
+
+/*
+ this enables command line options from other packages like 'gui' and 'log'
+*/
+
+import (
+ log "go.wit.com/log"
+)
+
+var NOW *log.LogFlag
+var INFO *log.LogFlag
+
+var SPEW *log.LogFlag
+var WARN *log.LogFlag
+
+var ERROR *log.LogFlag
+
+func init() {
+ full := "toolkit/nocui"
+ short := "nocui"
+
+ NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
+ INFO = log.NewFlag("INFO", true, full, short, "normal debugging stuff")
+
+ WARN = log.NewFlag("WARN", true, full, short, "bad things")
+ SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
+
+ ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors")
+}