summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 05:03:12 -0500
committerJeff Carr <[email protected]>2025-09-25 05:03:12 -0500
commit2d5506b5fafd6eea6401ab3b253820c528882574 (patch)
tree4fe7bba9a9f5f9af57fdcb4945d9e5b0f0b964a4 /main.go
parentfabf425958a25bc3b83104aad25cad8adbe31a89 (diff)
add bash autocompletev0.5.9v0.5.10
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.go b/main.go
index e879de4..ba72ece 100644
--- a/main.go
+++ b/main.go
@@ -20,8 +20,8 @@ import (
"strings"
"github.com/go-cmd/cmd"
- "go.wit.com/dev/alexflint/arg"
"go.wit.com/lib/fhelp"
+ "go.wit.com/lib/gui/prep"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
@@ -30,10 +30,12 @@ import (
var VERSION string
var BUILDTIME string
+var ARGNAME string = "autogenpb"
+
// var fsort *os.File // the sort.pb.go output file
func main() {
- pp := arg.MustParse(&argv)
+ auto := prep.Bash3(&argv) // add support for bash autocomplete with go-arg
var pb *Files
pb = new(Files)
@@ -48,7 +50,7 @@ func main() {
// you need a proto file
if argv.Proto == "" {
log.Info("you must provide --proto <filename>")
- pp.WriteHelp(os.Stdout)
+ auto.WriteHelp()
os.Exit(-1)
}