Skip to content

Description for the help command is incorrect #2225

@Souvlaki42

Description

@Souvlaki42

Made a new cobra app in the latest version of it. This app has only the root command with some flags, although nothing significant changes with my issue because of it, I'm pretty sure.

Anyways the issue is that I'm trying to make a git sub command thing where it's called git-open so when you put it in the $PATH, your terminal will recognize it as git open like a git sub command.

I tried setting the use property of the rootCmd to git open but now whenever I run the generated help command the description for it says help for git instead of help for git open.

I know this is a minor issue but still is weird. Can this be fixed somehow?

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