From 24c2b897f084e9c659b139e65453f965a9f57a64 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 10 Feb 2024 16:35:30 -0600 Subject: [PATCH] add args Signed-off-by: Jeff Carr --- args.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 args.go 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) +}