From f9a62d1c3aeb9e99214cc16a664705d9a517fac3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 19 Oct 2025 02:55:45 -0500 Subject: make doTestVersion() --- argv.template.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'argv.template.go') diff --git a/argv.template.go b/argv.template.go index d438b20..5ac7060 100644 --- a/argv.template.go +++ b/argv.template.go @@ -31,6 +31,12 @@ func (args) ParseFlags(flags []string) error { return err } +// add this funcgion: this will print the help +func (args) WriteHelpForSubcommand(cmd string) error { + me.pp.WriteHelpForSubcommand(os.Stderr, cmd) + return nil +} + // this will print the help for the subcmd func (args) WriteHelpForAutocomplete(part string, subcmd ...string) error { return me.pp.WriteHelpForAutocomplete(os.Stderr, os.Stdout, part, subcmd...) -- cgit v1.2.3