fixes for go-args

This commit is contained in:
Jeff Carr 2025-02-22 14:31:08 -06:00
parent 7e19f3b9ae
commit c5f840ec2f
2 changed files with 5 additions and 2 deletions

View File

@ -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 `

View File

@ -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 {