summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 00:11:03 -0600
committerJeff Carr <[email protected]>2024-01-18 00:11:03 -0600
commit66f87e34481df249b238d2b1490b6a0c1a3402e0 (patch)
tree22f4effacd5463609ac4bd82a3d31c2c0cd7527d /args.go
just a "gui" from <STDIN>v0.0.1
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..4b6b38e
--- /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", false, 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", false, full, short, "toolkit errors")
+}