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..86b2652
--- /dev/null
+++ b/flags.go
@@ -0,0 +1,20 @@
+package repolist
+
+/*
+ this enables command line options from other packages like 'gui' and 'log'
+*/
+
+import (
+ "go.wit.com/log"
+)
+
+var REPO *log.LogFlag
+var REPOWARN *log.LogFlag
+
+func init() {
+ full := "go.wit.com/lib/gui/repo"
+ short := "repo"
+
+ REPO = log.NewFlag("REPO", false, full, short, "general repo things")
+ REPOWARN = log.NewFlag("REPOWARN", true, full, short, "general repo things")
+}