diff options
| author | Jeff Carr <[email protected]> | 2025-02-22 14:31:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-22 14:31:08 -0600 |
| commit | c5f840ec2f6d973b3d748814b6c9b2cd12f0e77f (patch) | |
| tree | 22eff60adcc8ca341766b7d299391abe3b561520 | |
| parent | 7e19f3b9aed6970b671004a4195a1531f75515e5 (diff) | |
fixes for go-args
| -rw-r--r-- | argv.go | 5 | ||||
| -rw-r--r-- | main.go | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -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 ` @@ -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 { |
