summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/flags.go b/flags.go
new file mode 100644
index 0000000..5ff1319
--- /dev/null
+++ b/flags.go
@@ -0,0 +1,20 @@
+package gowit
+
+/*
+ this enables command line options from other packages like 'gui' and 'log'
+*/
+
+import (
+ "go.wit.com/log"
+)
+
+var WIT *log.LogFlag
+var WITWARN *log.LogFlag
+
+func init() {
+ full := "go.wit.com/lib/gui/gowit"
+ short := "gowit"
+
+ WIT = log.NewFlag("WIT", true, full, short, "general go.wit.com things")
+ WITWARN = log.NewFlag("WITWARN", true, full, short, "wit.com warnings")
+}