diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 02:55:45 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 02:55:45 -0500 |
| commit | f9a62d1c3aeb9e99214cc16a664705d9a517fac3 (patch) | |
| tree | c0c2dc5199b9388669f6509419a0b93ae054b371 /argv.template.go | |
| parent | 3a7d5a176350447cf568d9fbc7ea804895549968 (diff) | |
make doTestVersion()
Diffstat (limited to 'argv.template.go')
| -rw-r--r-- | argv.template.go | 6 |
1 files changed, 6 insertions, 0 deletions
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...) |
