Skip to content

please provide hint for new func to use when old one is deprecrated #2319

@duglin

Description

@duglin

E.g. https://pkg.go.dev/github.com/spf13/cobra#Command.HelpTemplate

says:

HelpTemplate return help template for the command. This function is kept for backwards-compatibility reasons. 

which implies that it should not be used, and instead we should use some newer func (or mechanism) instead. It would be nice if the the docs here told us what to use. From looking thru the TOC I wasn't able to figure it out so I ended up using this "deprecated" one.

Also, s/return/returns the/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions