summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-10 16:35:30 -0600
committerJeff Carr <[email protected]>2024-02-10 16:35:30 -0600
commit24c2b897f084e9c659b139e65453f965a9f57a64 (patch)
tree39de92fd9514cc96c3b785dde44dc7ba7536f559
parente8c7e33bfdf5b2c0c44df52c52a2e90daa97aa85 (diff)
add argsv0.20.3
Signed-off-by: Jeff Carr <[email protected]>
-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..2263d40
--- /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 {
+ ListRepos bool `arg:"--list-repos" help:"list all repositories"`
+}
+
+func init() {
+ arg.MustParse(&args)
+}