summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-01 15:27:59 -0600
committerJeff Carr <[email protected]>2024-01-01 15:27:59 -0600
commit5e485f20d9893034eb37d4c92608ee4cb9b57c6a (patch)
tree72e86e072513a5e3165e11bc1d946ce86a77c36b /argv.go
initial commit
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/argv.go b/argv.go
new file mode 100644
index 0000000..994fd8e
--- /dev/null
+++ b/argv.go
@@ -0,0 +1,17 @@
+package main
+
+/*
+ this enables command line options from other packages like 'gui' and 'log'
+*/
+
+import (
+ arg "github.com/alexflint/go-arg"
+ "go.wit.com/gui/gui"
+ "go.wit.com/log"
+)
+
+
+func init() {
+ arg.MustParse()
+ log.Bool(true, "INIT() args.ArgDebug =", gui.ArgDebug())
+}