From 0f40ba0f9c063bf60c1baa98d75c78bf30b5b7f7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Oct 2025 08:00:22 -0500 Subject: making small progress --- argv.template.go | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3