summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..017a072
--- /dev/null
+++ b/argv.go
@@ -0,0 +1,18 @@
+package main
+
+/*
+ this enables command line options from other packages like 'gui' and 'log'
+*/
+
+import (
+ arg "github.com/alexflint/go-arg"
+ "go.wit.com/log"
+
+ "go.wit.com/gui/gui"
+)
+
+
+func init() {
+ arg.MustParse()
+ log.Info("INIT() gui args.ArgDebug =", gui.ArgDebug())
+}