summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-22 14:31:08 -0600
committerJeff Carr <[email protected]>2025-02-22 14:31:08 -0600
commitc5f840ec2f6d973b3d748814b6c9b2cd12f0e77f (patch)
tree22eff60adcc8ca341766b7d299391abe3b561520
parent7e19f3b9aed6970b671004a4195a1531f75515e5 (diff)
fixes for go-args
-rw-r--r--argv.go5
-rw-r--r--main.go2
2 files changed, 5 insertions, 2 deletions
diff --git a/argv.go b/argv.go
index ae1ffde..3ed58bf 100644
--- a/argv.go
+++ b/argv.go
@@ -9,7 +9,6 @@ package main
*/
import (
- "go.wit.com/dev/alexflint/arg"
"go.wit.com/log"
)
@@ -21,12 +20,14 @@ type args struct {
}
func (args) Version() string {
- return "zood " + VERSION + " Built on: " + BUILDTIME
+ return "zookeeper " + VERSION + " Built on: " + BUILDTIME
}
+/*
func init() {
arg.MustParse(&argv)
}
+*/
func (a args) Description() string {
return `
diff --git a/main.go b/main.go
index ef4146d..f7d670f 100644
--- a/main.go
+++ b/main.go
@@ -9,6 +9,7 @@ import (
"time"
"go.wit.com/dev/alexflint/arg"
+ "go.wit.com/gui"
"go.wit.com/lib/protobuf/zoopb"
"go.wit.com/log"
)
@@ -21,6 +22,7 @@ var resources embed.FS
func main() {
var pp *arg.Parser
+ gui.InitArg()
pp = arg.MustParse(&argv)
if pp == nil {