summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-03-07 00:50:58 -0600
committerJeff Carr <[email protected]>2024-03-07 00:50:58 -0600
commitbf83739801829107c0245e738d6c4360b021504e (patch)
treefa0f0a172d6e856f237232e6e4d37f866183d35c /args.go
blergv0.0.1
Diffstat (limited to 'args.go')
-rw-r--r--args.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/args.go b/args.go
new file mode 100644
index 0000000..3ff5743
--- /dev/null
+++ b/args.go
@@ -0,0 +1,19 @@
+package main
+
+/*
+ this parses the command line arguements
+
+ this enables command line options from other packages like 'gui' and 'log'
+*/
+
+import (
+ "go.wit.com/dev/alexflint/arg"
+)
+
+var args struct {
+ Repo string `arg:"--repo" help:"go path for the repo"`
+}
+
+func init() {
+ arg.MustParse(&args)
+}