summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-18 08:00:22 -0500
committerJeff Carr <[email protected]>2025-10-18 08:00:22 -0500
commit0f40ba0f9c063bf60c1baa98d75c78bf30b5b7f7 (patch)
tree1381d4c6447cdd158f659ab4a2c6a28dad86b894
parent0b25f021974cd96a9619dd0fc39385557926db4a (diff)
making small progress
-rw-r--r--argv.template.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/argv.template.go b/argv.template.go
index 5bfbdfd..5ca2ff7 100644
--- a/argv.template.go
+++ b/argv.template.go
@@ -6,6 +6,8 @@ package main
// TODO: clean this up in argv
import (
+ "os"
+
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
)
@@ -30,6 +32,11 @@ func (args) ParseFlags(flags []string) error {
return err
}
+// this will print the help for the subcmd
+func (args) WriteHelpForAutocomplete(part string, subcmd ...string) error {
+ return argvpp.WriteHelpForAutocomplete(os.Stderr, os.Stdout, part, subcmd...)
+}
+
func (args) InitGui() error {
// panic("got here")
arg.Register(&gui.ArgvGui)