diff options
| author | Jeff Carr <[email protected]> | 2025-10-26 08:55:11 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-26 08:55:11 -0500 |
| commit | 8385540f09ca42ef9443fddfd1a89e76ad5f1329 (patch) | |
| tree | 45cc8b4da0d6a68eee2f4c80cfffa540d876b0a0 /main.go | |
| parent | 6ccf7c45a24bf55a8d8ccc5b452dc3496aeac90e (diff) | |
new argvpb changes
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -26,7 +26,7 @@ import ( func main() { me = new(mainType) - me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args + argvpb.Init(&argv, APPNAME, BUILDTIME, VERSION) // adds shell auto-complete me.pb = new(Files) var s string var err error @@ -45,9 +45,9 @@ func main() { // safe exits back to your shell (with timing and toolkit close) if err != nil { - me.argv.BadExit(s, err) + argvpb.BadExit(s, err) } - me.argv.GoodExit(s) + argvpb.GoodExit(s) } func okExit(s string) { @@ -67,7 +67,7 @@ func doPrecheck() (string, error) { if argv.Proto == "" { // todo: run on every .proto file log.Info("todo: run on all .proto files") - argv.WriteHelp() + me.pp.WriteHelp(os.Stdout) return "you must provide --proto <protoname>.proto", errors.New("need .proto") } |
