diff options
| -rw-r--r-- | argv.template.go | 7 |
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) |
